how to set default background image in javscript code example Example: js background image document.body.style.backgroundImage = "url('img_tree.png')";