aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/api/window/length/index.html
blob: 202c83237d430c39d7bc5c3b303812a6a96294a1 (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
48
49
50
51
---
title: Window.length
slug: Web/API/Window/length
translation_of: Web/API/Window/length
---
<div>{{ ApiRef() }}</div>

<p>Liefert die Anzahl an Frames ({{HTMLElement("frame")}} oder {{HTMLElement("iframe")}} elements) im aktuellen Fenster.</p>

<h2 id="Syntax">Syntax</h2>

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

<ul>
 <li><code>framesCount</code> ist die Anzahl an Frames.</li>
</ul>

<h2 id="Beispiel">Beispiel</h2>

<pre class="brush:js">if (window.length) {
  // this is a document with subframes
}</pre>

<h2 id="Spezifikationen">Spezifikationen</h2>

<table class="spectable standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</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>

<h2 id="Browserkompatibilität">Browserkompatibilität</h2>



<p>{{Compat("api.Window.length")}}</p>