aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/document/height/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/es/web/api/document/height/index.html')
-rw-r--r--files/es/web/api/document/height/index.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/files/es/web/api/document/height/index.html b/files/es/web/api/document/height/index.html
new file mode 100644
index 0000000000..1bc2852c58
--- /dev/null
+++ b/files/es/web/api/document/height/index.html
@@ -0,0 +1,44 @@
+---
+title: Document.height
+slug: Web/API/Document/height
+translation_of: Web/API/Document/height
+---
+<div>{{APIRef("DOM")}} {{Obsolete_header}}</div>
+
+<div class="note">
+<p><strong>Note:</strong> Comenzando en {{Gecko("6.0")}},<code> document.height </code>no es soportada. En lugar usar <code>document.body.clientHeight</code>. Ver {{domxref("element.clientHeight")}}.</p>
+</div>
+
+<h2 id="Summary">Summary</h2>
+
+<p>Devuelve la altura del objeto {{domxref("document")}} . En la mayoría de los casos, esto equivale al elemento {{HTMLElement("body")}}  del documento actual.</p>
+
+<h2 id="Syntax" name="Syntax">Syntax</h2>
+
+<pre class="syntaxbox"><em>height_value</em> = document.height
+</pre>
+
+<h2 id="Example">Example</h2>
+
+<pre class="brush: js">// alert document height
+alert(document.height);
+</pre>
+
+<h2 id="Alternatives">Alternatives</h2>
+
+<pre class="syntaxbox">document.body.clientHeight
+document.documentElement.clientHeight
+document.documentElement.scrollHeight
+</pre>
+
+<h2 id="Specification">Specification</h2>
+
+<p>HTML5</p>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li>{{domxref("document.width")}}</li>
+ <li>{{domxref("Element.clientHeight")}}</li>
+ <li>{{domxref("Element.scrollHeight")}}</li>
+</ul>