From this answer, I have the following after my <body>
tag:
<a id="Pagetop"></a>
In my footer, I have:
<script>
jQuery(document).ready(function () {
jQuery(".pgtop").click(function () {
jQuery('html, body').animate({
scrollTop: jQuery("#Pagetop").offset().top
}, 1000);
});
});
</script>
<p class="pgtop"><img src=".../images/up-arrow.png" alt ="Go to top of page" title ="Go to top of page" width="30" height="auto" border = "0" ></p>
This code works on this site, but the same code does not work on this site.
Can you please see why the up arrow doesn't scroll up on the 2nd site?
The element in question is the up arrow in the bottom right corner of the window.
Help appreciated.