Element.offsetTop (Property)

The Y 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.offsetTop

An offset value in the vertical access from the origin of the parent to the top of the receiving Element object. 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.y, Element object, Element.offsetParent, Measurement units, style.pixelTop, style.posTop

Property attributes:

ReadOnly.

insert figure 0044