Window outerHeight property
- Previous Page Opener
- Next Page OuterWidth
- Go to the Previous Level Window Object
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:
Instance
Example 1
Get the height and width of the browser window:
let height = window.outerHeight;
let height = outerHeight;
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>";
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 |
- Previous Page Opener
- Next Page OuterWidth
- Go to the Previous Level Window Object