I have a URL with a long query string attached to it. After the page loads, I do not require the query string. So I want to remove the query string from the address bar with
Use history.replaceState({}, "Title", "page.html");
history.replaceState({}, "Title", "page.html");
same syntax for pushState. However you will have to find a way to make IE understand that.
pushState
A better way would be to use Apache mod_rewrite module. It's quite easy to use.
mod_rewrite