TOC PREV NEXT INDEX

domref



offsetLeft


Gets/sets the number of pixels that the current element is offset to the left within the offsetParent node.

Syntax

left = element.offsetLeft
 

Parameters

left is an integer representing the offset to the left in pixels.

Example

color_table = document.getElementById("t1");
 
tOLeft = color_table.offsetLeft;
 
if ( tOLeft > 5 ) {
 
    // large left offset: do something here
 
}
 

Notes

None.

Specification

DOM Level 0. Not part of specification.


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX