MouseEvent pageX Property in JavaScript
MouseEvent pageX Property in JavaScript
The pageX property is a read-only property and it is used to return horizontal coordinate of mouse pointer when a mouse event was triggered according to document which is basically a web page. For getting the vertical coordinate we use the pageY property.
Syntax:-
Its syntax is:- event.pageX
Return:-
Its return is:- number denoting horizontal coordinate of mouse pointer in pixels