"BYE" Popup, onUnload
Go to www.cgiscript.net for more free tools!

Description:
This script is designed to open a window when the users are leaving your site. For example, when they leave your site you can open a window that says thank you for visiting. When they say "BYE" you say, "Not so fast!"
Directions:
Add the code below to the <BODY> tag of the page you want to trigger the action from. When they leave that page another window will open. Change the text "URL" in the code below to reflect the new web site address you want them to enter. Use the 'Grab Text' buttons to select the code within the adjacent textarea. Then use Control-C or Edit -> Copy to buffer the text for pasting into your document.

Insert the following code into the <BODY> tag of your html document.

Examples:

Full URL » <body onunload="window.open('http://www.newpage.com')">
Relative » <body onunload="window.open('page.htm')">

Then use Control-C to copy the text into your web page.