Anyone know a simple method to swap the background color of a webpage using JavaScript?
function pink(){ document.body.style.background = "pink"; } function sky(){ document.body.style.background = "skyblue"; }
Pink Sky
Pink
Sky