user847495 user847495 - 1 year ago 68
HTML Question

In Javascript, how do I reload the page without the query parameters?

Let's say I want to reload

But I want to reload
ONLY (without everything after the question mark)

Answer Source
window.location = window.location.href.split("?")[0];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download