Element.offsetLeft (Property)

The X coordinate of the HTML element.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Opera - 5.0
Property/method value type:Number primitive
JavaScript syntax:IEmyElement.offsetLeft

The position of the object in pixels offset horizontally from its parent. This value is read-only.

The offsetParent property contains a reference to the parent object that the relative positions are measured with respect to.

Warnings:

See also:Anchor.x, Element object, Element.offsetParent, Measurement units, style.pixelLeft, style.posLeft

Property attributes:

ReadOnly.

insert figure 0044