Results 1 to 1 of 1
07-24-2007, 12:17 PM #1
How do I get onUnload to close a window
I need to close the current window when I leave it for another website.
When I use an <a href> to link to another website I need the current window to close as it is playing a video which I need to stop on leaving the website. At the moment the new website opens in Normal screen instead of Maximised (that's another problem) so the current window is still visible and the video is still playing..
I cannot stop it before leaving, I can only stop it via the href link - is this possible..?
I have tried <body onUnload="window.close()"> but this (if my syntax is correct) does not work nor does onBlur.
Anyone got any ideas please...
Last edited by Glenvern; 07-24-2007 at 12:20 PM.Glenvern