Anyone know a simple method to swap the background color of a webpage using JavaScript?
This will change the background color according to the choice of user selected from the drop-down menu:
function changeBG() { var selectedBGColor = document.getElementById("bgchoice").value; document.body.style.backgroundColor = selectedBGColor; }
Red Ivory Pink