Name

innerHeight, innerWidth — NN 4 IE n/a DOM n/a

Synopsis

Read/Write

The pixel measure of the height and width of the content region of a browser window or frame. This area is where the document content appears, exclusive of all window “chrome.”

Example

window.innerWidth = 600
window.innerHeight = 400

Value

Integer.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.