HTML DOM innerheight, innerwidth Properties

Definition and Usage

Read-only property, declares the height and width of the window's document display area in pixels.

The width and height here do not include the height of the menu bar, toolbar, and scroll bar, etc.

IE does not support these properties. It uses the clientWidth and clientHeight properties of document.documentElement or document.body (related to the version of IE) as an alternative.