Visit Mozilla.org

DOM:window.self

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns an object reference to the window object.

[edit] Syntax

objRef = window.self 

[edit] Example

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

[edit] 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.

[edit] Specification

DOM Level 0. Not part of specification.