Back to Content

VisualViewport: pageTop property

files/en-us/web/api/visualviewport/pagetop/index.md

latest387 B
Original Source

{{APIRef("CSSOM view API")}}

The pageTop read-only property of the {{domxref("VisualViewport")}} interface returns the y coordinate of the top edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or 0 if current document is not fully active.

Value

A double.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}