Change HTML style
To change the style of HTML elements, please use this syntax:
document.getElementById(id).style.property=new style
Hello World!
<script> <br>document.getElementById("p2").style.color="blue"; <br></script>
JS changes element attributes;
<script> <br>var div = document.getElementByIdx_x('d1'); <br> div.setAttribute("class", "abc"); <br></script>