HTML | DOM MouseEvent pageY Property
The MouseEvent pageY property is a read-only property and used for returning the vertical coordinate of the mouse pointer when an event has triggered.
Return Value: It returns a number which represents the vertical coordinate of the mouse pointer in pixels.
Below program illustrates the MouseEvent pageY property:
Example: Finding out the vertical coordinates of the mouse pointer, when the mouse button is clicked on an element.
- Before clicking the button:
- After clicking the button:
- Internet Explorer
- Google Chrome
- Apple Safari
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.