how to set color in javascript code example
Example 1: js element text color
element.style.color = '#f0f';
Example 2: javascript change color
var span = document.getElementsByTagName("span")[0];
span.style.color = "red";
Example 3: how to change color on js
document.getElementBiId("your id").style.color = "your color";
//it can also be used as:
document.body.style.backgroundColor = "your color";