Posted By

BFTrick on 01/14/11


Tagged

scroll jquery top


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

andywd7
AllKnightAccess
Some0ne


Jquery Scroll to top of page


 / Published in: jQuery
 

URL: http://www.electrictoolbox.com/jquery-scroll-top/

  1. $(document).ready(function() {
  2.  
  3. $('a[href=#top]').click(function(){
  4. $('html, body').animate({scrollTop:0}, 'slow');
  5. return false;
  6. });
  7.  
  8. });

Report this snippet  

You need to login to post a comment.