set style background url attribute javascript code example
Example 1: js background image
document.body.style.backgroundImage = "url('img_tree.png')";
Example 2: javascript change frame background
window.frames['frameName'].document.body.style.backgroundColor = "#000";