We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

window.self Redirect 1

« window

Summary

Returns an object reference to the window object.

Syntax

objRef = window.self 

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

HTML5

 

Document Tags and Contributors

Last updated by: Sheppy,