window.innerWidth

Width of the browser window viewport including, if rendered, the vertical scrollbar.

Syntax

var intViewportWidth = window.innerWidth;

Values

Instructions: observe the effects of the following manoeuvers on several window properties

window.outerWidth
window.innerWidth
window.outerHeight
window.innerHeight

The window.innerWidth property is read-only; it has no default value.
window.innerWidth property stores an integer representing a number of pixels.