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

'clientWidth' Syntax and Note

Note:

Read-only properties. 
Retrieve the content and padding width.
    
Syntax:
    
document.getElementById("elementID").clientHeight
document.getElementById("elementID").clientWidth
document.all.elementID.clientHeight // IE only
document.all.elementID.clientWidth // IE only

    

      
      








Related examples in the same category

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