I have several anchor links on my webpage. I'd like to make it so that when the user refreshes/reloads the page, the page does not follow the anchor link in the URL, and goes to the top of the page. I have tried stripping everything after the # on the backend, but I can't imagine there isn't a more elegant solution. Is there a way to do this on the front-end, using HTML/JS?
Aucun commentaire:
Enregistrer un commentaire