Is there a way to change the color of a button, or at least the color of the button label programmatically? I can change the label itself with
document.getE
Try this code You may want something like this
Some text
Then on your .js file enter this.Make sure your html is connected to your .js
var tag=document.getElementById("myButton"); function mouseOver() { tag.style.background="yellow"; }; function mouseOut() { tag.style.background="white"; };