> $('#topBtn').click(function(event) { $('html,body').animate({scrollTop:0}, 500); });