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. 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.

Syntax

var pos = event.pageY

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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic support
Experimental
Chrome Full support 45Edge Full support YesFirefox Full support YesIE Full support 9Opera Full support YesSafari Full support YesWebView Android Full support 45Chrome Android Full support 45Edge Mobile Full support YesFirefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
Value type changed from long to doubleChrome Full support 56Edge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android Full support 56Chrome Android Full support 56Edge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

See also

Document Tags and Contributors

Contributors to this page: fscholz, jpmedley, libbymc, salty-horse, cvrebert, teoli
Last updated by: fscholz,