JavaScript Window self Property
JavaScript Window self Property
The self property is used to return the current window. We can use it for comparisons between different windows. It is a read-only property.
Syntax:-
Its syntax is:- window.self
Return:-
Its return is:- the current window object itself