JavaScript » Event » pageX

Syntax:
event.pageX

These properties return the horizontal/vertical position of the cursor relative to the page, in pixels, at the time the event occured.