2.2.2 layerX Attribute

layerX of type long, read-only

Gets the horizontal coordinate of the event, relative to the whole document, unless the event occurs inside a positioned element. When the event occurs within a positioned element, the layerX attribute gets the horizontal coordinate of the event relative to that positioned element.

The layerX attribute is read-only and has no default value.