TOC PREV NEXT INDEX

domref



window.parent


Returns a reference to the parent of the current window or subframe.

Syntax

pWin = window.parent
 

Parameters

pWin is an object reference to the parent window.

Example

if window.parent != window.top
 
    // we're deeper than one down
 

Notes

When a window is loaded in a frameset, its parent is .

Specification

DOM Level 0. Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX