Click to See Complete Forum and Search --> : On Close of a 'preview' window.


wknit
12-20-2002, 07:41 PM
I have an HTML form that pops up/generates a 'Printer Friendly' window (new). When the user closes the preview window, I would like to load a new URL in the window that the preview window came from. The workflow would look like this...

1. Window 1 - Form loaded (html)
2. User Selects 'Preview' button
3. Window 2 is launched with preview.
4. Window 2 is closed by user.
5. Window 1 loads 'Thank You' - (html)

I have steps 1, 2 and 3 done, is step 5 possible?

I am a novice at jscript, so I am not all that familiar with it, though it does look like it can be done from what I have read in books so far. I just have no clue how to implement or what commands to use.

Anyone that can help me out?

Thanks and Happy Holidays.

Beach Bum
12-20-2002, 08:24 PM
try the onunload event. you put it in the body statement.

onunload="xxxxxx"

where xxxxx could be a javascript function that does what ever you want. In this case probably a window.open