JavaScript Window outerHeight Tutorial

In this section, we will learn what the Window outerHeight property is and how to use it in JavaScript.

JavaScript Window outerHeight Property

The `outerHeight` property is used to return the height of the browser window.

Remember, this is the height of the browser window (including the tool-bar and menu-bar etc.) And not the view-port only. To get the height of the view-port, we use the `outerHeight` property.

Note: this property is read only.

Window outerHeight Property Syntax:

window.outerHeight;

Example: using JavaScript Window outerHeight Property

console.log(window.outerHeight);

Output:

Depending on the height of browsers, the value of this property varies.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies