js get running class by name code example Example: javascript get class name document.getElementById("myDIV").className = "mystyle";