This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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

Related pages

Attributions