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

'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