src code
document.viewport.getHeight() → Number
Returns the height of the viewport.
Equivalent to document.viewport.getDimensions().height.
document.viewport.getDimensions().height