The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
offsetY property
Gets the y-coordinate of the mouse pointer, relative to the target node.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Integer
The y-coordinate.
Standards information
Remarks
Offset coordinates include the padding of an element, but not its margin or border.
See also
- DragEvent
- MouseEvent
- MouseWheelEvent
- WheelEvent
- Reference
- clientY
- pageY
- screenY
- y
Show:
