If your pages are long winded, it’s a good idea to provide viewers with an easy way to quickly/ automatically scroll back to the top of the page.

[javascript] $(“a[href=’#top’]”).click(function() {
$(“html, body”).animate({ scrollTop: 0 }, “slow”);
return false;
});
[/javascript]

HTML code place where you want.

[html] Back to Top
[/html]

View Source →

Maan
Author

21 year old designer, blogger and front-end developer. love to share creative design and inspiration.

Write A Comment