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.
Its syntax is:- event.clientX
Its return is:- number denoting horizontal coordinate of mouse pointer in pixels