/ Published in: JavaScript

Slide / scroll to the top of the page.
Expand |
Embed | Plain Text
//scroll to top of screen $('html').animate({scrollTop:0}, 'slow'); //for most browsers $('body').animate({scrollTop:0}, 'slow'); //for webkit
You need to login to post a comment.