Your Search Results

    Window.length

    Summary

    Returns the number of frames (either frame or iframe elements) in the window.

    Syntax

    framesCount = window.length;
    
    • framesCount is the number of frames.

    Example

    if (window.length) {
      // this is a document with subframes
    }

    Specification

    DOM Level 0. Not part of any standard.

    Document Tags and Contributors

    Contributors to this page: Sheppy, ethertank, teoli, Nickolay, JesseW, kscarfone, RobG, Mgjbot, Dria
    Last updated by: teoli,
    Hide Sidebar