getWidth
1.6.0

document.viewport.getWidth() -> Number

Returns the width of the viewport.

Equivalent to calling document.viewport.getDimensions().width.