View Full Version : No History option ...
T-B0N3
04-28-2006, 01:08 PM
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.
T-B0N3
05-03-2006, 07:01 AM
Where do I put that code ?
Thank you.
djr33
05-03-2006, 07:25 AM
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)
Where do I put that code ?Depends how you want the user to navigate to the next page.
djr33
05-03-2006, 07:48 AM
Isn't this on the current page to make it masked? onload...?
Or, maybe i'm missing something.
Or, maybe i'm missing something.I think you are, but I'm not sure exactly what :)
djr33
05-03-2006, 08:23 AM
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.
djr33
05-03-2006, 08:29 AM
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.
So... this would be activated by click a link?Or any other Javascript-capable event.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.