Canvas.viewportHeight Property

Gets the height of the viewport in pixels.
 

Property Value

Type: Number