Javascript Reference - Window innerWidth and innerHeight Property








The innerWidth property returns the inner width of a window's content area.

Browser Support

innerHeight and innerWidth Yes 9.0 Yes Yes Yes

Syntax

window.innerWidth
window.innerHeight

Return Value

An integer type value representing the inner width and/or the inner height of the browser window's content area, in pixels.