clientY Event Attribute
Event Object
Definition and Usage
The clientY event attribute returns the vertical coordinate of the mouse pointer relative to the browser page (client area) when the event is triggered. The client area refers to the current window.
Syntax
event.clientY
Example
Example
The following example shows the coordinates of the mouse pointer when the event occurs:
Please click in the document. A message box will display the x and y coordinates of the mouse pointer.
Try it »
Event Object