how to change background colors on a webpage jacascript code example
Example 1: how to change background color using js
var warning = document.getElementById("warning");
warning.style.background-color = "red";
Example 2: set background color dynamically javascript
document.body.style.backgroundColor="white"