How can I reload the page using JavaScript?
I need a method that works in all browsers.
To make it easy and simple, use location.reload(). You can also use location.reload(true) if you want to grab something from the server.
location.reload()
location.reload(true)