Click to See Complete Forum and Search --> : how to check if a window that i have opened is still opened?
pelegk1
10-27-2003, 05:38 AM
i am opening a window using
window.open()
how can i check after a minute that the window is still open?
thanks in advance
peleg
AdamGundry
10-27-2003, 06:02 AM
You can check the window.closed property, like this:
var windowHandle = window.open('http://www.example.com');
60 seconds later...
if (windowHandle.closed) {
alert('You closed the window!');
} else {
alert('The window is still open.');
}
Adam
pelegk1
10-27-2003, 06:07 AM
i have found that mean time
tell me anothe thing
where can i find full explenation or eamples for every of the properties?
AdamGundry
10-27-2003, 08:52 AM
Try these:
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/
Adam