Example 1 — Basic Read
Beginner example for window.outerHeight.
console.log(typeof window.outerHeight);
console.log(window.outerHeight >= window.innerHeight); How It Works
- Step. Typically outerHeight >= innerHeight.

window.outerHeight is the height of the whole browser window, including toolbars.
Read window.outerHeight with no parentheses.
window.outerHeight; | Call | What it does |
|---|---|
window.outerHeight | Full browser window height including chrome. |
Window property in browsers. No import required.
| Parameter | Description |
|---|---|
| window.outerHeight | Read-only or assignable depending on the property. No function arguments. |
| Return Value | Description |
|---|---|
| * | Full browser window height including chrome. |
Beginner example for window.outerHeight.
console.log(typeof window.outerHeight);
console.log(window.outerHeight >= window.innerHeight); Beginner example for window.outerHeight.
console.log(window.outerHeight - window.innerHeight >= 0); Beginner example for window.outerHeight.
console.log(Math.round(window.outerHeight)); window.outerHeight is a standard Window property in browsers.
Available in all modern browsers. Not used in plain Node.js without a DOM.
Bottom line: Safe in browsers. Skip in server-only Node scripts.
Continue through the Window properties list.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
9 people found this page helpful