MouseEvent offsetY Property in JavaScript
MouseEvent offsetY Property in JavaScript
The offsetY property is a read-only property and it is used to return y-coordinate of the mouse pointer relative to the target element. For getting the x-coordinate, we use the offsetX property.
Syntax:-
Its syntax is:- event.offsetY
Return:-
Its return is:- number denoting vertical coordinate of mouse pointer in pixels