This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Window: свойство length

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2015 г..

Возвращает число фреймов (как <frame> так и <iframe> ) в окне.

Значение

Число.

Пример

js
if (window.length) {
  // этот документ содержит фреймы
}

Спецификации

Specification
HTML
# dom-length-dev

Совместимость с браузерами