Is there anyway to make the browser "to forget" a certain page?
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.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
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.Where do I put that code ?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
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 whatOr, maybe i'm missing something.![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
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.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
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.
Bookmarks