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 July 2015.

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

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

Значение

Число.

Пример

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

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

Specification
HTML
# dom-length-dev

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