How can I use JavaScript reload page to refresh the current page in a way that works across all browsers?
You can also use location.reload() that reloads the current document. You can use it without any parameters to perform a standard reload.
You can assign the current URL to location.href to achieve a page refresh. This method effectively reloads the page.
location.href = location.href;
Another way to reload the page is by assigning the current URL to window.location, similar to location.href.
window.location = window.location.href;