'offsetLeft' Syntax and Note : offsetLeft « Javascript Properties « JavaScript Reference

'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

    

      
      








Related examples in the same category

1.'offsetLeft' Example
2.'offsetLeft' is applied to