This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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