TOC PREV NEXT INDEX

domref



window.self


Returns an object reference to the window object.

Syntax

selfObj = window.self
 

Parameters

selfObj is an object reference.

Example

if (window.parent.frames[0] != window.self) {
 
   // this window is not the first frame in the list
 
}
 

Notes

window.self is almost always used in comparisons like in the example above, which finds out if the current window is the first subframe in the parent frameset.

Specification

DOM Level 0. Not part of specification.
 


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