mozilla
Your Search Results

    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

    Contributors to this page: Sheppy
    Last updated by: Sheppy,
    Hide Sidebar