title: Scroll to when page load
body: <p>i got a jquery code from this link (end of page):
  <a href="https://stackoverflow.com/questions/4210798/how-to-scroll-to-top-of-page-with-javascript-jquery">How to scroll to top of page with JavaScript/jQuery?</a></p>
  
  <blockquote>
    <p>Why don't you just use some reference element at the very beginning of
    your html file, like</p>
  </blockquote>
  
  <pre><code>&lt;div id="top"&gt;&lt;/div&gt;
  </code></pre>
  
  <blockquote>
    <p>and then, when the page loads, simply do</p>
  </blockquote>
  
  <pre><code>$(document).ready(function(){
  
      top.location.href = '#top';
  
  });
  </code></pre>
  
  <blockquote>
    <p>If the browser scrolls after this function fires, you simply do</p>
  </blockquote>
  
  <pre><code>$(window).load(function(){
  
      top.location.href = '#top';
  
  });
  </code></pre>
  
  <p>now, everything is working but not in google chrome!
  <strong>how i can fix this code for google chrome?</strong>
  and how i can add a some animation to this code? like scroll speed or fast, slow etc...</p>