Scrolling to top in JQuery

Posted by Goud.Kv under jQuery category on | Points: 40 | Views : 697
Below code snippet ensures the scrolling top with some actions.

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

'scrollTop' is used to perform scrolling to the top. 'slow' makes theaction slower.

Comments or Responses

Login to post response