back page bg change js code example Example: JavaScript Change Background Color var element = document.body; element.style.backgroundColor = "blue";