The location object&#039s replace() method overwrites the current history entry with the specified URL. It removes the current history entry before the next URL is loaded. Removing the item from the history list also prevents users from seeing the page again by clicking on the Back button later. This is very useful, but only allows for "Get" variables to be passed. Can anyone tell me how to achieve the same thing and pass variables with a "Post" instead of a "Get".