---
title: Window.outerHeight
slug: Web/API/Window/outerHeight
tags:
  - API
  - Propiedad
  - Referencia
translation_of: Web/API/Window/outerHeight
---
<div>{{APIRef}}</div>

<h2 id="Summary" name="Summary">Sumario</h2>

<p><code>Window.outerHeight </code>obtiene la altura en pixeles de toda la ventana del navegador. Representa el alto de toda la ventana, incluyendo la barra de notificaciones (si se encuentra) y los bordes.</p>

<p>Esta propiedad es de sólo lectura, no tiene valor por defecto</p>

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

<pre class="syntaxbox"><var>outWindowHeight</var> = window.outerHeight;
</pre>

<p>Al obtener, <code>outWindowHeight</code> contiene el alto de la ventana.</p>

<h2 id="Notes" name="Notes">Notas</h2>

<p>Para cambiar el tamaño de una ventana, ver {{domxref("window.resizeBy()")}} y {{domxref("window.resizeTo()")}}.</p>

<p>Para obtener la altura interna de una ventana, por ejemplo, el alto de una página siendo desplegada, ver {{domxref("window.innerHeight")}}.</p>

<h3 id="Graphical_example" name="Graphical_example">Ejemplo gráfico</h3>

<p>La siguiente figura muestra la diferencia entre <code>innerHeight </code>y <code>outerHeight</code>.</p>

<p><img alt="innerHeight vs outerHeight illustration" src="/@api/deki/files/213/=FirefoxInnerVsOuterHeight2.png"></p>

<h2 id="Browser_compatibility" name="Browser_compatibility">Compatibilidad del navegador</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Característica</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>1</td>
   <td>{{CompatGeckoDesktop(1.0)}}</td>
   <td>9</td>
   <td>9</td>
   <td>3</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Característica</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>1</td>
   <td>{{CompatGeckoMobile(1.0)}}</td>
   <td>9</td>
   <td>9</td>
   <td>3</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="Specification" name="Specification">Especificaciones</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Especificación</th>
   <th scope="col">Estado</th>
   <th scope="col">Comentario</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{ SpecName('CSSOM View', '#dom-window-outerheight', 'Window.outerHeight') }}</td>
   <td>{{ Spec2('CSSOM View') }}</td>
   <td> </td>
  </tr>
 </tbody>
</table>

<h2 id="Ver_también">Ver también</h2>

<ul>
 <li>{{domxref("window.innerHeight")}}</li>
 <li>{{domxref("window.innerWidth")}}</li>
 <li>{{domxref("window.outerWidth")}}</li>
 <li>{{domxref("window.resizeBy()")}}</li>
 <li>{{domxref("window.resizeTo()")}}</li>
</ul>