|
-
Apr 20th, 2004, 08:12 AM
#1
Thread Starter
Member
JavaScript: Clearing the history?
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
-
Apr 20th, 2004, 08:31 AM
#2
Frenzied Member
It's not nice to hijack someone's browser like that. Why would you want to do that?
-
Apr 20th, 2004, 08:53 AM
#3
Hyperactive Member
Why dont you just force your site to open in a new window. History will be clean then!
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Apr 20th, 2004, 10:36 AM
#4
Thread Starter
Member
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
-
Apr 20th, 2004, 12:37 PM
#5
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>
...
...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|