The following works in Chrome / FF etc...
$(\'body\').animate({scrollTop : 0}, 0);
However, in IE 7, it doesn\'t do anything. Is ther
in IE8, i use $(document).scrollTop() to get the scrollTop property, $('body').scrollTop() or $('html').scrollTop() will always return 0.
$(document).scrollTop()
$('body').scrollTop()
$('html').scrollTop()
Maybe you can use
$(document).animate({scrollTop: 0}, 0); $('html,body').animate({scrollTop: 0}, 0);
to make it works on all browser.