VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-window-innerheight-property/

⇱ HTML DOM Window innerHeight Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM Window innerHeight Property

Last Updated : 15 Jun, 2023

The Window innerHeight property is used for returning the height of a window's content area. It is a read-only property and returns a number which represents the height of the browser window's content area in pixels.

Syntax:  

window.innerHeight

Return Value: It returns a number that represents browser window's content area height in pixels.

Below program illustrates the Window innerheight Property:
Returning the current frame's height. 

Output: 

👁 Image

After clicking the button:

👁 Image

Supported Browsers: The browser supported by Window innerHeight Property  are listed below:  

  • Google Chrome 1
  • Edge 12
  • Internet Explorer 9
  • Firefox 1
  • Opera 9
  • Safari 3
Comment
Article Tags: