eSnippets.net, a code gallery for creating, saving and sharing all kinds of code snippets.

Scroll To Top — Javascript

Posted On: Friday, April 3, 2015 at 2:03 AM

Jquery script to scroll to the top of page.

$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});

You need to be logged in to comment! x

rpjs

Joined on Saturday, May 3, 2014
Contributed 29 Snippets

Get Social and Share

Tags