Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to change h1 color in javascript

<h1 id="demo">Grepper</h1>
var col = document.getElementById("demo");
col.style.color="#FF0000";
 
PREVIOUS NEXT
Tagged: #change #color #javascript
ADD COMMENT
Topic
Name
6+1 =