ajax returnt to top page code example
Example: scroll page to top after ajax success
$('body').ajaxSuccess(function() {
$('html, body').animate({ scrollTop: 0 }, 'slow');
});
$('body').ajaxSuccess(function() {
$('html, body').animate({ scrollTop: 0 }, 'slow');
});