Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
layerX

layerX property

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

Internet Explorer 9

 

Syntax

HRESULT value = object.get_layerX(* p);

Property values

Type: long

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 IDOMMouseEvent::x instead.

See also

Reference
IDOMMouseEvent::clientX
IDOMMouseEvent::pageX
IDOMMouseEvent::screenX
IDOMMouseEvent::offsetX
IDOMMouseEvent::x

 

 

Community Additions

ADD
Show:
© 2015 Microsoft