JavaScript Window closed
JavaScript Window closed
The closed property is used to return true if the window is closed else it will return false. It is a read-only property.
Syntax:-
Its syntax is:- window.closed
Return:-
Its return is:- true if the window is closed else false