how to change button text and color with js code example Example: javascript change color of button document.getElementById("button").style.background='#000000';