pageY
Summary
Gets the y-coordinate of the mouse cursor, relative to the upper-left corner of the page.
Property of dom/objects/MouseEventdom/objects/MouseEvent
Syntax
Note: This property is read-only.
var yCoordinate = event.pageY;
Return Value
Returns an object of type NumberNumber
The Y coordinate of the mouse cursor.
Notes
The pageY property is equivalent to the clientY value plus the scrollTop value of the document, as the following code example shows.
var pageY = event.clientY + document.documentElement.scrollTop;
Related specifications
- CSSOM View
- Working Draft
See also
Related articles
CSSOM
pageY
Related pages
- DragEventDragEvent
- MouseWheelEventMouseWheelEvent
- WheelEventWheelEvent
Reference
- clientYclientY
- offsetYoffsetY
- screenYscreenY
- yy
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]