Firefox Tomorrow

web api instance property

Window: length property

View on MDN ↗

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

Value

A number.

Examples

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.