Your Internet Explorer is too old :( Please upgrade to latest IE or switch to Firefox/Google Chrome for better view!
IndiaAgainstCoronavirus
Join GiveIndia's fight against Coronavirus. Help them support the underprivileged with relief measures like food and sanitation kits, cash support and protective and life-saving equipment for hospitals and healthcare workers. Your contribution can help millions of people survive in these troubled times. The time to act is now, donate to save lives. indiafightscorona.giveindia.org

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/