MouseEvent.clientX (Property)

Mouse position relative to the web page.

Availability:

DOM level - 2
JavaScript - 1.5
Netscape - 6.0
Property/method value type:Number primitive
JavaScript syntax:NmyMouseEvent.clientX

This is the horizontal position of the mouse when the event was triggered. The position is calculated relative to the visible document area within the window or frame the mouse was positioned in when the event triggered.

See also:Event.clientX

Property attributes:

ReadOnly.