Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

closed

The closed property of the Window object is used to determine if a window is open or not. It returns a boolean value.

Syntaxwin.closed
// Open a new window var win1 = window.open("example.html","window1"); // If it is still open after 3 seconds, close it automatically setTimeout( function(){ if(!win1.closed){ win1.close(); } }, 3000);

JavaScript

Properties

bodycalleeclosedcookiedocumentdropEffecteffectAllowedfilesframeElementframeshistoryInfinityinnerHeightinnerHTMLinnerWidthlengthlocationlocationbarnameNaNnavigatornullopenerouterHeightparentprototypescreenstatetextContentundefined