Skip to content

JavaScript innerHeight | Property

  • by

Use JavaScript innerHeight Property to get the height of the current window’s content area in the browser. This is a read-only property of the Window interface and returns the window’s height in pixels, including the height of the horizontal scroll bar, if present.


JavaScript innerHeight example

Simple example code.

<!DOCTYPE html>
    let height = window.innerHeight;
    let h = innerHeight;

    console.log('Window Height ',height)



JavaScript innerHeight

Do comment if you have any doubts or suggestions on this JS property topic.

Note: The All JS Examples codes are tested on the Firefox browser and the Chrome browser.

OS: Windows 10

Code: HTML 5 Version

Leave a Reply

Your email address will not be published. Required fields are marked *