============================================================ Script: Popup Window from Hell Functions: This short, easy script set launches a window that continually re-opens itself and cannot be permanently closed *unless* the visitor clicks on a link that you provide. Browsers: NS6, IE4-6 (degrades gracefully in older browsers) Author: etLux ============================================================ INSTRUCTIONS: There are several steps to this, but all the scripts are short and easy. ============================================================ Step 1. Launching the Popup... You can launch the popup any way you wish; however, it's best to use the script below in the
... of the page. Set the various window.open parameters for the features, size, position, etc., that you need. Set theUrl to that of the popup page. Take care to get the entire line reWin=window.open(...) on a single line. Launch the popup like this: Open Popup ============================================================ Step 2. Placing the Script in the Popup Window... Put this script in the ... of the popup page. Set the various window.open parameters for the features, size, position, etc., that you need. Set theUrl to that of the popup page. Take care to get the reWin=window.open(...) on a single line. ============================================================ Step 3. Activating the Script in the Popup Window Add the following onunload function call to the &body> tag in the popup page, as shown: ============================================================ Step 4. IMPORTANT Setting the Link to Close the Popup Window Caution: Be sure to include this or there will be no way for your visitor to close the window! Close This ============================================================