/ Published in: JavaScript
                    
                                        
Slide / scroll to the top of the page.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
//scroll to top of screen
$('html').animate({scrollTop:0}, 'slow'); //for most browsers
$('body').animate({scrollTop:0}, 'slow'); //for webkit
Comments
 Subscribe to comments
                    Subscribe to comments
                
                