title: javascript focus not working on load
body: <pre><code>window.onload = function() {
                   try{
  
                       document.getElementById('result').focus();
                   }catch(err){
  
                   }
  
               }
  </code></pre>
  
  <p>In my form div result id load when form submits and when it show i want to focus on it.
  the above code is not working in my case.
  Please help me to find problem with this code.<br/>
  <a href="http://jsfiddle.net/9abhw/" rel="nofollow">jsfiddle</a></p>