title: Move to a div after page load. "onmouseover" works but "window.onload" does not
body: <p>I have a page (and divs) that are being dynamically generated and what I need for this page to do is to scroll to a particular div immediately after the page loads. What is screwy about this code is this...</p>
  
  <p>The "button" code below, when you run the mouse over it (or <code>onclick</code>), works perfectly. It executes the <code>rolldownTo</code> function perfectly. However when I try to specify to specify the same action using <code>window.onload,</code> nothing happens. I have included both the "button " code and the <code>window.onload</code> below.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Help&lt;/title&gt;
  
  &lt;script LANGUAGE="JavaScript1.2" type="text/javascript" 
      src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"
      djConfig="usePlainJson : true, parseOnLoad: true"&gt;
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
      dojo.require("dojo.parser");
      dojo.require("dijit.form.FilteringSelect");
      dojo.require("dijit.form.TextBox");
      dojo.require("dijit.layout.ContentPane");
      dojo.require("dijit.layout.BorderContainer");
      dojo.require("dijit.layout.TabContainer");
      dojo.require("dojo.data.ItemFileReadStore");
      dojo.require("dojo.window");
  
  
  function rolldownTo(my_anchor){
      dojo.window.scrollIntoView(my_anchor);
  }
  
  window.onload=rolldownTo('car_help');
  &lt;/script&gt;
  
  &lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs    /dojo/1.5/dijit/themes/claro/claro.css"/&gt;
  &lt;/head&gt;
  
  &lt;body class="claro"&gt;
  
  &lt;div dojoType="dijit.layout.BorderContainer" style="width: 100%; height: 100%;"&gt;
      &lt;div dojoType="dijit.layout.TabContainer" region="center"&gt;
          &lt;div dojoType="dijit.layout.ContentPane" title="CAR HELP" selected=true&gt;
             &lt;button type=button id=button1 onmouseover="rolldownTo('car_help');"&gt;
               scroll to car_help
              &lt;/button&gt;
              ........
              LOTS OF DIVS LIVE IN THIS DIV, INCLUDING MY TARGET "car_help"
              ........  
   &lt;/div&gt;
          &lt;div dojoType="dijit.layout.ContentPane" title="BIKE HELP" selected=false&gt;
       ........
              ........
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;script language="JavaScript1.2" type="text/javascript"&gt;
  .... LOTS OF CODE THAT GENERATES CONTENT FOR THE DIVS ABOVE
  &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Does anyone have an idea why a Javascript event like <code>onmouseover</code> or <code>onclick</code> would work perfectly but <code>window.onload</code> will not?</p>