Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Window parent property

Window parent property

Window Object Reference Window Object


Definition and Usage

The parent property returns the parent window of the current window.

Syntax

window.parent


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the parent property


Example

Example

When a new window is opened, pop up an alert in the parent window:

Runoob Tutorial(runoob.com)

Try it »


Window Object Reference Window Object