Click to See Complete Forum and Search --> : pop up on exit and more


javame16
09-18-2003, 02:53 PM
Hey Everyone,

I got the script for opening another window(pop up) after you close out a window.

This script does work, but. What I wanted it to do, was after I Close a window and the pop up window opens up, from that pop up window I wanted another to open, then from that popup when another to open upon exiting.

1. Open index.html
2. Close Index.html
3. PopUp1.html OPENS
4. Close out PopUp1.html
5. Open PopUp2.html
6. Close PopUp2.html
7. Open PopUp1.html
8. Close PopUp1.html
9. Open PopUp2.html

Well, thats the order Ive wanted. Ive created 2 .html files and put the scripts in, so when you close PopUp1.html PopUp2.html opens, and when you close PopUp2.html then PopUp1.html opens, but this is not working to well. The script is correct, file names are correct, whats the problem?

96turnerri
09-18-2003, 04:32 PM
try this

put it on index.html

<body onunload="window.open('http://www.YOURDOMAIN.com/popup1.html')">

on popup1.html

<body onunload="window.open('http://www.YOURDOMAIN.com/popup2.html')">

on popup2.html

<body onunload="window.open('http://www.YOURDOMAIN.com/popup1.html')">

then this will do what you want repeatedly