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

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



'className' Syntax and Note

Note:

Read and write property. 
Sets the CSS class or selector applied to the element.
    
Syntax:
    
document.getElementById("elementID").className = value
document.all.elementID.className = value // IE only

    

      
      
Related examples in the same category
1.  'className' Example
2.  'className' 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.