Scroll to Top with jQuery

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 →

How to Make Bootstrap Dropdown Menu Extend on Hover