How can I reload the page using JavaScript?
I need a method that works in all browsers.
You can simply use
window.location=document.URL
where document.URL gets the current page URL and window.location reloads it.