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.
The offset properties are implemented very inconsistently across platforms and versions of MSIE. Use them with caution. In any case, they are available for read access only so they are of limited use in position control.
Prev | Home | Next |
Element.offsetHeight | Up | Element.offsetParent |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |