Mega Code Archive

 
Categories / JavaScript Reference / Javascript Properties
 

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