javascript css style red code example
Example 1: how to change css using javascript
document.getElementById("myText").className = "anyNewClass"
Example 2: javascript change color
var span = document.getElementsByTagName("span")[0];
span.style.color = "red";