changing background image in js code example
Example 1: js background image
document.body.style.backgroundImage = "url('img_tree.png')";
Example 2: change background with js
document.body.style.backgroundColor = "red";
document.body.style.backgroundImage = "url('img_tree.png')";
document.body.style.backgroundColor = "red";