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

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



'offsetLeft' Example

    
<html>
<body>
<div id="myDiv" 
     style="position:absolute; 
            left:150; 
            top:100; 
            width:400; 
            height:200; 
            background-color:blue;">
</div>
<button onclick="alert(myDiv.offsetLeft);">offsetLeft</button>
</body>
</html>

    
      
      
Related examples in the same category
1.  'offsetLeft' Syntax and Note
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.