Here is the source code for the Exit Window JavaScript. You should have seen the JavaScript effect when you followed the link here - the new window.
JavaScript Source Code 3000: Navigation: Exit Window Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!
<!-- TWO STEPS TO INSTALL EXIT WINDOW:
1. Paste the coding into the HEAD of your HTML document 2. Copy the onunLoad event handler into the BODY tag -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<! > <! >
<!-- Begin function leave() { window.open('http://www.yourserver.com/page-to-open.html','','toolbar=no,menubar=no,location=no,height=500,width=500'); } // End --> </SCRIPT>