src code

class method document.viewport.getHeight

document.viewport.getHeight() → Number

Returns the height of the viewport.

Equivalent to document.viewport.getDimensions().height.