Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

clientY Event Attribute

clientY Event Attribute

Event Object Reference 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:

Runoob Tutorial(runoob.com)

Please click in the document. A message box will display the x and y coordinates of the mouse pointer.

Try it »


Event Object Reference Event Object