jQuery Event - pageY Property
Example
Display the position of the mouse pointer:
$ (document).mousemove(function(e){ $("span").text("X: " + e.pageX + ", Y: " + e.pageY); });
Definition and Usage
The pageY() property is the position of the mouse pointer, relative to the top edge of the document.
Syntax
event.pageY
Parameter | Description |
---|---|
event | Required. Specifies the event to be used. This event Parameters come from the event binding function. |