Answers for "javascript color"

1

javascript context color

context.fillStyle = "Green";
context.fillStyle = "#FF0000";
Posted by: Guest on May-16-2020
1

javascript color

document.getElementById("myH2").style.color = "#ff0000";
document.getElementById("myP").style.color = "magenta";
document.getElementById("myP2").style.color = "blue";
document.getElementById("myDiv").style.color = "lightblue";
Posted by: Guest on August-03-2021
5

js element text color

element.style.color = '#f0f';
Posted by: Guest on April-15-2020
1

javascript change color

var span = document.getElementsByTagName("span")[0];
span.style.color = "red";
Posted by: Guest on May-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language