The VisualViewport
interface of the the Visual Viewport API represents the visual viewport for a given window. For a page containing iframes, each iframe, as well as the containing page, will have a unique window object. Each window on a page will have a unique VisualViewport
representing the properties associated with that window.
Documentation VisualViewport by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Variables
read onlyoffsetLeft:Float
Returns the offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels.
read onlyoffsetTop:Float
Returns the offset of the top edge of the visual viewport from the top edge of the layout viewport in CSS pixels.
read onlypageLeft:Float
Returns the x coordinate relative to the initial containing block origin of the top edge of the visual viewport in CSS pixels.