MouseEvent screenX Property in JavaScript
MouseEvent screenX Property in JavaScript
The screenX property is a read-only property and it is used to return horizontal coordinate of mouse pointer when an event was triggered according to users computer screen. For getting the same vertical coordinate, we use screenY property.
Syntax:-
Its syntax is:- event.screenX
Return:-
Its return is:- number denoting horizontal coordinate of mouse pointer in pixels