Window outerHeight property

Definition and usage

outerHeight The property returns the external height of the browser window, including all interface elements (such as toolbars/scrollbars).

outerHeight The property is read-only.

See also:

outerWidth property

innerWidth property

innerHeight property

Instance

Example 1

Get the height and width of the browser window:

let height = window.outerHeight;

Try it yourself

let height = outerHeight;

Try it yourself

Example 2

All height and width properties:

let text =
"<p>innerWidth: " + window.innerWidth + "</p>" +
"<p>innerHeight: " + window.innerHeight + "</p>" +
"<p>outerWidth: " + window.outerWidth + "</p>" +
"<p>outerHeight: " + window.outerHeight + "</p>";

Try it yourself

Syntax

window.outerHeight

Or:

outerHeight

Return value

Type Description
Number The height of the browser window, including all interface elements, in pixels.

Browser Support

All Browsers Support window.outerHeight:

Chrome IE Edge Firefox Safari Opera
Chrome IE Edge Firefox Safari Opera
Support 9-11 Support Support Support Support