Windows apps
Collapse the table of content
Expand the table of content
Information
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.

offsetX property

Gets the x-coordinate of the mouse pointer, relative to the target node.

Internet Explorer 9

 

Syntax

JavaScript

p = object.offsetX

 

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:
© 2017 Microsoft