August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.closed
The closed property of the Window object returns a Boolean value specifying if the window instance it is referencing is closed or not. If the window is still open, the property returns false. If it is closed, the property returns true.
Listing 7.532 has two buttons. When the Open button is clicked, a second window is opened and focused. When the Check button is clicked, the script checks to see if the window is still open or not. If it is, the text in the text area of the second window is changed. If it is not, an alert dialog box is displayed.
<html> <head> ... |
Read now
Unlock full access