function red() { document.getElementById("box").style.backgroundColor = "red"; } function yellow() { document.getElementById("box").style.backgroundColor = "yellow"; }