1. Веб-технологии для разработчиков
  2. Интерфейсы веб API
  3. Window
  4. Window: свойство length

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

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

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /