07 Apr, 2009
Back to top link with jQuery
HTML:
<a href="#" class="top">Back to Top</a>
Javascript:
$('a.top').click(function(){
$('html, body').animate({scrollTop: '0px'}, 300);
return false;
});
Recommended Books on jQuery
Love what you've just read? Subscribe to our newsletter to receive tips, resources and special offers related to web development & design.


Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 


Thanks for userful topic. :D