js background image

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

Also in JavaScript: