Visit Mozilla.org

DOM:window.length

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

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

[edit] Syntax

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

[edit] Example

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

[edit] Specification

DOM Level 0. Not part of any standard.