MouseEvent: pageY property

The pageY read-only property of the MouseEvent interface returns the Y (vertical) coordinate in pixels of the event relative to the whole document. This property takes into account any vertical scrolling of the page.

Value

A double floating point value.

Examples

js
let pageY = event.pageY;

Specifications

Specification
CSSOM View Module
# dom-mouseevent-pagey

Browser compatibility

BCD tables only load in the browser

See also