how change body color with javascript code example
Example 1: JavaScript Change Background Color
var element = document.body;
element.style.backgroundColor = "blue";
Example 2: how to change background color using js
var warning = document.getElementById("warning");
warning.style.background-color = "red";