/ Published in: PHP

Button that onclick with scroll to top of the page
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Back To Top $('a.top').click(function(){ $(document.body).animate({scrollTop : 0},800); return false; }); //Create an anchor tag <a class="top" href="#">Back to top</a>
Comments
