VisualViewport.pageTop

Experimental

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The pageTop read-only property of the VisualViewport interface returns the y coordinate of the top edge of the visual viewport relative to the initial containing block origin, in CSS pixels.

Syntax

var pageTop = VisualViewport.pageTop

Value

A double.

Specifications

Specification Status Comment
Visual Viewport API
The definition of 'pageTop' in that specification.
Draft Initial definition.

Browser compatibility

BCD tables only load in the browser