Is there a programmable way to force the url history list to clear in IE? I don’t want to have the user manually do via Tools/Internet Options/Clear History button. I want the history list to get cleared via JavaScript upon logout.
But if you use location.replace('nextpage.html') it will remove the current page from the history for the page you are requesting.
Best used for when you want to navigate away from an intermediate page that was used as the target of a form.
Using location.replace('nextpage.html') to navigate to nextpage.html will prevent the intermediate page from showing up in the History list, so if the user clicks on the back button it will not update the database twice.