0
how do you change the colour of words in js
2 Answers
+ 3
<p id="demo" onclick="changeColor()">Slayer</p>
<script>
function changeColor() {
document.getElementById("demo").style.color = "deeppink";
}
</script>
// when user click "Slayer", font color changed
0
Thnx 'Dick'!!!!!! Your account's name is cool!