div background image chnage uisng js

JavaScript
document.body.style.backgroundImage = "url('img_tree.png')";document.body.style.backgroundImage = "url('img_tree.png')"; 
Source

Also in JavaScript: