Removing Browser History

Hey everyone,

My clients have a, “Family Violence” Prevention website and they have asked me to create them an “Exit” button so that the users could escape the page quickly if they heard their abusive partners.

I added the javascript:document.location.replace(“”)" to the button to disable the back button, but it only works on the last page viewed… if they viewed more than one page on the website it takes them back to the page before the last page viewed.

Is there a way to remove all pages from a domain name? or remove all browser history before that?

If not possible does anyone have any alternate suggestions?


Deleting information on a computer with Javascript would generally be considered malicious so is prohibited.

  1. It would be possible to load page in a frame or use ajax calls. It would tank your seo, but none of the history would be recorded except the initial landing on the frameset.

  2. You could also post information on how to use private browsing features on different browsers.