'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