JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Window.closed Property

Name

Window.closed Property---specifies whether a window has been closed

Availability

Navigator 3.0

Synopsis

window.closed

Description

The closed property of the Window object is a read-only Boolean value that specifies whether the window has been closed. When a browser window closes, the Window object that represents it does not simply disappear. The Window object continues to exist, but its closed property is set to true.

Usage

Once a window has been closed, you should not attempt to use or manipulate it in any way. If your code needs to use a window that may be closed without your program's knowledge, then you should be sure to always test the closed property before using the Window object.

See Also

"Window", "Window.close()"


Previous Home Next
Window.close() Book Index Window.confirm()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell