layerX
Summary
Gets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element.
Property of dom/MouseEventdom/MouseEvent
Syntax
var result = element.layerX;
element.layerX = value;
Notes
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.
Syntax
Standards information
There are no standards that apply here.
Attributions
Mozilla Developer Network : [event.layerX Article]
Microsoft Developer Network: [event.layerX Article]