Let’s assume you’re working on a website, and you want to provide the users with the ability to Reload the page by clicking a link while also preserving all the query parameters within the URL.
Most likely, your first option would be to use one of the 500 ways to reload the page with Javascript.
But in this short tutorial, we won’t be using JavaScript, only Html.
The solution is quite simple:
href="">Your Link
Use a href
with empty quotes.
Take a look and see it in action:
Happy coding!