When the application has a frameset or iframe page, parent is the parent window, top is the top parent window (some windows have several layers of frameset or iframe), and self is the current window, opener uses the open Method to open the current window. Window. self function: it is for when... SyntaxHig
When the application has a frameset or iframe page, parent is the parent window, top is the top parent window (some windows have several layers of frameset or iframe), and self is the current window, opener uses the open Method to open the current window.
Window. self
Function: it refers to the reference of the current window. It is equivalent to the window attribute.
Syntax: window. self
Note: window, self, and window. self are equivalent.
Window. top
Function: Return to the top-level window, that is, the browser window.
Syntax: window. top
Note: If the window itself is a top-level window, the top attribute returns a reference to itself.
Window. parent
Function: return to the parent window.
Syntax: window. parent
Note: If the window itself is a top-level window, the parent attribute returns a reference to itself.
In the frame webpage, the parent window is usually the top-level window, but if there is a frame in the Framework, the parent window and the top-level window are not necessarily the same.
Determine whether the current window is in a framework: