Friday, May 31, 2013

Scroll to Top using javascript

These days every site have scroll to top or back to top option with this code you will be also able to to give visitor an option to scroll back to top.

Step one:

Copy this script in <head> section of html page.

Step 2:

How you can call? Add this code where you want to show the Back to top or scroll to top link. Normally it is in footer section of html page.
Back To Top
You done

No comments :

Post a Comment