Mega Code Archive

 
Categories / JavaScript Reference / Javascript Properties
 

OffsetLeft Syntax and Note

Note: Read-only properties.  Return the horizontal coordinates of the upper-left corner of   block-level or inline element.      Syntax:      document.getElementById("elementID").offsetLeft document.all.elementID.offsetLeft // IE only document.getElementById("elementID").offsetTop document.all.elementID.offsetTop // IE only