I have a seemingly simple question, but can\'t find the answer. I have a webpage, which may have resulted from a POST request and may have an anchor (#) in the URL. I want t
The best I've come up with so far is:
function reloadAsGet() { var loc = window.location; window.location = loc.protocol + '//' + loc.host + loc.pathname + loc.search; }
Try the following:
location.replace(location.href)
You can try this
location=location.href