Window parent property
Window Object
Definition and Usage
The parent property returns the parent window of the current window.
Syntax
window.parent
Browser support





All major browsers support the parent property
Example
Example
When a new window is opened, pop up an alert in the parent window:
Try it »
Window Object