Hi everyone,
Is it possible to clear the history using JavaScript or at least clear the back history so that the back button won't go back?
I know about the history.back function i wondered if there was an equivilent history.clear function.
Robin
Printable View
Hi everyone,
Is it possible to clear the history using JavaScript or at least clear the back history so that the back button won't go back?
I know about the history.back function i wondered if there was an equivilent history.clear function.
Robin
It's not nice to hijack someone's browser like that. Why would you want to do that?
Why dont you just force your site to open in a new window. History will be clean then!
Its not for a normal website. It is for a browser based library OPAC system. It needs to clear the history to stop people viewing other peoples details.
Robin
Inserting these META Tags into your HTML document will prevent the client from caching the page.
The browser is obliged not to cache the page.
Code:<html>
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" />
</head>
<body>
...
...