'offsetLeft' Syntax and Note : offsetLeft : Javascript Properties : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP
JavaScript Reference Home »  Javascript Properties   » [  offsetLeft  ]   
 



'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
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.