aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/window/length/index.html
blob: 541e39356373d231c41bd22cfec9a3410f306a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
title: Window.length
slug: Web/API/Window/length
translation_of: Web/API/Window/length
---
<div>{{ ApiRef() }}</div>

<h2 id="Сводка">Сводка</h2>

<p>Возвращает кол-во фреймов (например {{HTMLElement("frame")}} или {{HTMLElement("iframe")}}) в текущем окне.</p>

<h2 id="Синтаксис">Синтаксис</h2>

<pre class="syntaxbox"><em>framesCount</em> = window.length;
</pre>

<ul>
 <li><code>framesCount</code> - кол-во фреймов на странице.</li>
</ul>

<h2 id="Пример">Пример</h2>

<pre class="brush:js">if (window.length) {
  // Этот документ содержит фреймы
}</pre>

<h2 id="Спецификация">Спецификация</h2>

<table class="spectable standard-table">
 <tbody>
  <tr>
   <th scope="col">Спецификация</th>
   <th scope="col">Статус</th>
   <th scope="col">Комментарий</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG','browsers.html#dom-length','Window.length')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td> </td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', 'browsers.html#dom-length', 'Window.length')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td> </td>
  </tr>
 </tbody>
</table>