screenY event property
Event Object
Definition and Usage
The screenY event property returns the vertical coordinate of the mouse pointer relative to the screen when the event occurs.
Syntax
event.screenY
Example
Example
The following example shows the coordinates of the mouse pointer when the event occurs:
Click somewhere in the document. A message box will show the x and y coordinates of the pointer relative to the screen.
Try it »
Event Object