title: Simple Body onload function not triggering my function
body: <p>I have this javascript function to trigger with the body onload function, but I cannot get it to work. What am I doing wrong here? Here is my <a href="http://jsfiddle.net/3pDsJ/26/" rel="nofollow">fiddle</a> and code below:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;body onload="loading()"&gt;
      &lt;div id="container"&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>function loading(){   
    document.getElementById('container').css("background-image", "none");
  }
  </code></pre>
  
  <p>also tried </p>
  
  <pre><code>function loading(){   
    document.getElementById('container').cssText = "background-image: none";
  }
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>body{
    background: #000;
  }
  #container {
  width: 600px;
  height: 500px;
  margin:0 auto;
  background-image: url("http://lamininbeauty.co.za/images/gallery/loading.png");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  }​
  </code></pre>