Javascript scroll to top question

Hello, i have been testing my site in various browsers. I have an anchor #top when a document is quite long. I noticed that Google Chromw scrolls extremely smooth compared to ie and firefox. I am wondering if anyone knows how to implement such a scroll using JavaScript? I’d like to replace my named anchors with something smooth like Chrome for all browsers.

Maybe this is enough, if firefox and edge is ok.

1 Like

yes, this works. Thank you, Jim. :smile:
I always code for Edge, Firefox, Chrome, Safari and Opera. Konqueror is usually no problem because it is similar to Mozilla anyway.

i don’t see a solution button but your post is a solution. Thank you!

Sponsor our Newsletter | Privacy Policy | Terms of Service