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.
Its syntax is:- window.parent OR parent
Its return is:- an object of parent window of the currently active window