HTML | DOM MouseEvent clientY Property
The MouseEvent clientY property is a read-only property which is used to return the vertical coordinate of the mouse pointer based on the current window when a mouse event was triggered.
Return Value: It returns a number that represents the vertical coordinate of the mouse pointer in pixels.
Below program illustrates the MouseEvent clientY property:
Finding out the vertical coordinates of the mouse pointer when the mouse button is clicked on an element.
After clicking the button
Supported Web Browsers:
- Google Chrome 1 and above
- Edge 12 and above
- Opera 12.1 and above
- Internet Explorer 9 and above
- Firefox 1.5 and above
- Apple Safari 1 and above
My Personal Notes arrow_drop_up
Please Login to comment...