offsetX property
Gets the x-coordinate of the mouse pointer, relative to the target node.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Integer
The x-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
- clientX
- pageX
- screenX
- x
Show:
