Your Internet Explorer is too old :( Please upgrade to latest IE or switch to Firefox/Google Chrome for better view!

Displaying 1 posts for July 2013

July 29, 2013

jQuery Smooth Scroll to Top Button

0 comments
Without taking your too much time I'll first let you know, this button is simple anchor tag and clicking on this will take user to top of your web page. Perhaps user can prefer space-bar but still useful for some users.

By default in HTML you can put an anchor tag with href value of #top it works fine, to make it more decorative you need to put few lines of jQuery so it will smoothly scroll the window to top.

I am using jQuery to animate the window so you need to include jQuery at your web page.
if you don't have get it from here http://jquery.com/download/