how to change the background color of the page with javascript code example Example: set background color dynamically javascript document.body.style.backgroundColor="white"