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

'offsetWidth' Syntax and Note

Note:

Read-only properties. 
Return the width of any block-level or inline element.
    
Syntax:
    
document.getElementById("elementID").offsetHeight
document.all.elementID.offsetHeight // IE only
document.getElementById("elementID").offsetWidth
document.all.elementID.offsetWidth // IE only

    

      
      








Related examples in the same category

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