document.body.style.height = "100%"; : <p>I want to get a handle on the html tag to change the Background image but I'm running into: "TypeError: document.html is undefined" error.</p>

<p>My code:</p>

<pre><code>    function init(){
        document.html.style.background ="url('175541_DSC_0291.JPG') no-repeat center center"; 
    }

    window.onload = function(){
        init();
    }
</code></pre>

<p>I lurked around for similar questions, closest I found was using the body tag instead. It works when I change the html object to body. </p>

<p>Additionally, I can easily set the html background to what I want in my CSS file, but I want to do it with JavaScript. Any ideas as to what's going on?</p>

<p>Thanks in advance,
George</p>
