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

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
pageY

See also