So ändern Sie die H1 -Farbe in JavaScript
<h1 id="demo">Grepper</h1>
var col = document.getElementById("demo");
col.style.color="#FF0000";
Plain Pig
<h1 id="demo">Grepper</h1>
var col = document.getElementById("demo");
col.style.color="#FF0000";