So, the task is to find the coordinates of the mouse over the screen.
It can be implemented using the clientX and clientY methods of the event:
- event.clientX: It gives the horizontal coordinate of the event.
- event.clientY: It gives the vertical coordinate of the mouse.
// For X coordinate event.ClientX // For Y coordinate event.ClientY
My Personal Notes arrow_drop_up
Please Login to comment...