JavaScript Window parent
JavaScript Window parent
The parent property is used for returning the parent window of the currently active window. It is a read-only property. The window.parent property is used to return the immediate parent of a window while window.top returns the top most window among all windows.
Syntax:-
Its syntax is:- window.parent OR parent
Return:-
Its return is:- an object of parent window of the currently active window