I have a scroll back to top button that brings the user back to the top of the page with a smooth glide. It is working in Firefox but not Chrome:
$('a#scroll-to-top').click(function() {
$('html').animate({
scrollTop: 0
}, 500);
return false;
});
<a href="#" id="scroll-to-top">Up Top</a>
How to get this to work in Chrome?