Is there anyway to make the browser "to forget" a certain page?
Printable View
Is there anyway to make the browser "to forget" a certain page?
If you use window.location.replace("newurl") to go to a new page, that one will replace the current in the history. That's as close to it as you can get.
Where do I put that code ?
Thank you.
it's javascript.
<body onLoad="here">
or <script...>
....
here (in "function()")
...
</script>
and use <body onLoad="function()">
or, a link, image, etc.. but body is best.
(Twey, not positive on that code, be sure to correct me if I'm wrong.... but I think it's ok)
Depends how you want the user to navigate to the next page.Quote:
Where do I put that code ?
Isn't this on the current page to make it masked? onload...?
Or, maybe i'm missing something.
I think you are, but I'm not sure exactly what :)Quote:
Or, maybe i'm missing something.
You're saying your 'script' would be used on page A in a link, then you would click that link to visit page B, and page B would be the one not recorded in the history?
Something like that?
No, page A would be the one replaced in the history by page B.
Ok.
So... this would be activated by click a link?
Isn't the desire to replace the history entry of the current page so the VIEWER can't return... meaning you don't expect them to click a link for that.
Security shouldn't be a user choice to click.
Or, does this work by when you click to page B, it GOES there, but also calls the old history entry the net page?
I guess that could work... but you'd have to rely on the visitor clicking a link on your page, not just leaving it bed, or closing it, or using the address bar to go somewhere else, or, even, hitting back.
Nobody mentioned security. If intended as a security measure, this is pointless. The most common application is for redirecting pages, so the user doesn't get stuck in a loop when they try to go back, or "intro" pages that the user won't want to have to click through every time they go back to the site.Or any other Javascript-capable event.Quote:
So... this would be activated by click a link?