html change background color of div id code example
Example: JavaScript Change Background Color
var element = document.body;
element.style.backgroundColor = "blue";
var element = document.body;
element.style.backgroundColor = "blue";