Hi everyone,
I’m currently working on a website where I have a link element in the navigation bar. When clicked, it’s supposed to smoothly scroll to a specific area of the website. However, I’ve encountered an issue where after scrolling, the page refreshes. I suspect this is because the link element is triggering a refresh behavior, but I want to keep it as a link.
Does anyone have any suggestions on how I can prevent the page from refreshing after scrolling to the anchor point while still keeping the link element intact?
Thanks in advance for your help
.