MouseEvent clientX Property in JavaScript
MouseEvent clientX Property in JavaScript
The clientX property is a read-only property and it is used to return horizontal coordinate of the mouse pointer when a mouse event was triggered according to client area. Usually, the client area is the current window. For getting vertical coordinate we use clientY property.
Syntax:-
Its syntax is:- event.clientX
Return:-
Its return is:- number denoting horizontal coordinate of mouse pointer in pixels