aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/window/length/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/api/window/length/index.html')
-rw-r--r--files/pt-br/web/api/window/length/index.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/files/pt-br/web/api/window/length/index.html b/files/pt-br/web/api/window/length/index.html
new file mode 100644
index 0000000000..b99fa5747a
--- /dev/null
+++ b/files/pt-br/web/api/window/length/index.html
@@ -0,0 +1,52 @@
+---
+title: Window.length
+slug: Web/API/Window/length
+tags:
+ - API
+ - DOM
+ - Gecko
+ - Propriedade
+ - Referencia
+ - Referência do DOM
+ - Referência do DOM do Gecko
+ - WebAPI
+ - Window
+translation_of: Web/API/Window/length
+---
+<div>{{ ApiRef() }}</div>
+
+<h2 id="Summary" name="Summary">Resumo</h2>
+
+<p>Retorna o número de frames (tanto elementos <code>frame</code> ou <code>iframe</code>) dentro da janela.</p>
+
+<h2 id="Syntax" name="Syntax">Sintaxe</h2>
+
+<pre class="syntaxbox"><em>quantidadeFrames</em> = window.length;
+</pre>
+
+<ul>
+ <li><em>quantidadeFrames</em> é o número de frames.</li>
+</ul>
+
+<h2 id="Example" name="Example">Exemplo</h2>
+
+<pre class="brush:js">if (window.length) {
+ // este é um documento com subframes
+}</pre>
+
+<h2 id="Specification" name="Specification">Especificações</h2>
+
+<table class="spectable standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Especificação</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comentário</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG','browsers.html#dom-length','Window.length')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>