TOC PREV NEXT INDEX

Put your logo here!


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. 


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX