How to scroll to the top of page in IE with jQuery
<p>I have this Javascript below using jQuery that shows a div on a page that when clicked will slowly scroll the page back to the top of the page, it works good with chrome and firefox however when used on IE 8 it just goes to the top immediately instead of a slower scroll up</p>

<p>Can anyone tell me how to overcome this?</p>

<pre><code>// BACK TO TOP
jQuery(window).scroll(function() {
    if (jQuery(window).scrollTop() &gt; 0) $('#jump-link').show();
    else
    $('#jump-link').hide();
});

jQuery('#jump-link').click(function() {
    jQuery('html, body').stop().animate({
        scrollTop: 0
    }, 900);
    return false;
});
</code></pre>
