Event.x (Property)

The X coordinate of the event within a positioned object.

Availability:

JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:Number primitive
JavaScript syntax:-myEvent.x

When this event is passed with a resize event in Netscape, this property indicates the width of the object having been resized.

Otherwise, in Netscape, it indicates the horizontal position of the mouse pointer measured relative to the layer in which the event occurred.

In MSIE, it indicates the horizontal position of the mouse pointer, measured relative to the parent element.

Property attributes:

ReadOnly.