title: jQuery scrollTop not working in Chrome but working in Firefox
body: <p>I have used a <code>scrollTop</code> function in jQuery for navigating to top, but strangely 'the smooth animated scroll' stopped working in Safari and Chrome (scrolling without smooth animation) after I made some changes. </p>
  
  <p>But it is still working smoothly in Firefox. What could be wrong?</p>
  
  <p>Here is the jQuery function I used,</p>
  
  <p>jQuery:</p>
  
  <pre><code>$('a#gotop').click(function() {
      $("html").animate({ scrollTop: 0 }, "slow");
      //alert('Animation complete.');
      //return false;
  });
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;a id="gotop" href="#"&gt;Go Top &lt;/a&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre class="lang-css prettyprint-override"><code>#gotop {
        cursor: pointer;
        position: relative;
        float: right;
        right: 20px;
        /*top:0px;*/
  }
  </code></pre>