Posted By

xavsio4 on 08/04/11


Tagged

jquery


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Snowalker
fackz


Slide to top of page (jquery)


 / Published in: jQuery
 

  1. <a onclick="jQuery('html, body').animate( { scrollTop: 0 }, 'slow' );" href="javascript:void(0);">
  2. Go to top
  3. </a>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Some0ne on August 7, 2011

Better option (imo): http://snipplr.com/view/43825/

Posted By: Snowalker on November 30, 2011

wooow!! the best short snippet ever! Thank you!

You need to login to post a comment.