/

HTML / CSS / JavaScript Tutorial

JavaScript Window property: closed

[this page | pdf | back links]

The closed property (of the JavaScript BOM window object) returns true if the window has been closed or false if it has not been closed. If the window doesn’t exist (e.g. because it was never opened) then this can be tested for by e.g. evaluating (!windowvar) as this will evaluate to false if windowvar does not exist.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile