The offsetX attribute retrieves the x-coordinate of the mouse pointer with respect to the element firing the event.
Syntax
event.offsetX
Possible Values
This attribute is a read-only Number (long).
See Also