Q . How to scroll to top of html page with JavaScript or jQuery?

Surya Pratap Singh. asked, Dec 20 ' 2014

I am using the below code but it reached to top suddenly.

I want the code which scroll slowly.

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


  • JavaScript
  • HTML
  • scroll

0 Answers

Leave a Ansewer