javascript: how to clear history of the browser

https://lists.latech.edu/pipermail/javascript/2002-April/003309.html

Javascript] Clear history onload= Golden Troll javascript@LaTech.edu
Tue, 2 Apr 2002 13:44:50 -0800


>From another list:
I think this will work for you:

<script language="JavaScript1.2"><!--
history.back('yourURL');
//--></script>

Courtesy of irt.org
http://developer.irt.org/script/902.htm
Peace and Respects,
Scott Gahres
Owner
Golden Troll four20 Ventures hemp@goldentroll.com
http://goldentroll.com

-----Original Message-----
From: javascript-admin@LaTech.edu [mailto:javascript-admin@LaTech.edu]On
Behalf Of Mark.Drozd@walgreens.com
Sent: Tuesday, April 02, 2002 12:48 PM
To: javascript@LaTech.edu
Subject: [Javascript] Clear history onload=


Does anyone have a function  that will clear the history so a user
cannot
use the back button to "go back" or use the address drop down (tool bar)
to
select a URL where a previous user was?

I have an application where new users share a computer. These new users
should not be able to go back to (or view) where a previous user was. I
would like the first screen of my application to clear the history to
null
each time that first page loaded.

All of my users will be using IE 5.0. All of our browswers are set to
reload a new page each time and not cache.

Thanks!
原文地址:https://www.cnblogs.com/cy163/p/251112.html