offsetX
property of the EVENT object. Returns the X coordinate of the mouse cursor, in pixels, relative to its containing element, when an event occurs.
window.event.offsetX