MouseEvent.pageY

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.

Syntax

var pos = event.pageY;

Originally, this property was defined as a long integer. The CSSOM View Module redefined it as a double float. See the Browser compatibility section for details.

Examples

var pageY = event.pageY;

Specifications

Specification Status Comment
CSS Object Model (CSSOM) View Module
The definition of 'pageY' in that specification.
Working Draft Redefined from long to double.
Touch Events
The definition of 'pageY' in that specification.
Unknown Initial definition.

Browser compatibility

BCD tables only load in the browser

See also