getDimensions
1.6.0
document.viewport.getDimensions() -> { width: Number, height: Number }
Returns the size of the viewport.
The viewport is the subset of the browser window that a page occupies — the “usable” space in a browser window.
Examples
document.viewport.getDimensions();
//-> { width: 776, height: 580 }