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.

layerX property

Gets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element.

Internet Explorer 9

 

Syntax

JavaScript

p = object.layerX

 

Property values

Type: Integer

The x-coordinate.

Standards information

There are no standards that apply here.

Remarks

A positioned element is an element whose position property is set to relative, absolute or fixed. For more information about element positioning, see About Element Positioning.

Note  This property is provided for cross-browser compatibility. Use x instead.
 

See also

DragEvent
MouseEvent
MouseWheelEvent
WheelEvent
Reference
clientX
pageX
screenX
offsetX
x

 

 

Show:
© 2017 Microsoft