Delete query string from address bar

Hey all,
Is there a javascript method for deleting a query string from the url in the address bar without flipping the page? Or is that sort of thing off limits to javascript?

Changing that would reload the page.

Certainly, if you clicked on a link, that would reload the page with whatever query string(or lack thereof). What I’m trying to find out is if there is a “non-actionable” method like “window.location.hash” that immediately affects the text in the address bar without actually invoking an href or onclick. Is there something like “window.location.querystring”?

Changing the location reloads the page, which is a measure that helps prevent phishing attacks.

Use the post method to pass information to the server without it being seen.
Use cookies to pass information to the client without it being seen.