Menu
Hi,
I’m quiet sure, but I’ve decided to ask:
Is there a posibility to block (disable) “back” (prev page) action/button in browser?
best regards
No, design your site so that it does not have to circumvent to default user interface.[/QUOTE]This is very true. And even if you were able to (thankfully, you can't), it wouldn't work for users without JavaScript.
<i>
</i>"Are you sure you want to navigate away from this page?"
"press ok to coninue, or Cancel to stay on the current page"
<i>
</i>window.onbeforeunload = function(e) {
return "You have unsaved changes to that will be *lost*. The world will end. Don't do it. Please!";
}
<i>
</i><?php
header('Pragma: no-cache');
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
?>
pcx99 : I think your code for for blocking the cache does not work in Mozilla Firefox 2.0.[/QUOTE]
<i>
</i><META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="01 Jan 1970 00:00:00 GMT">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
// Browser Back Button
window.history.forward(1); // this works for IE standalone
window.onbeforeunload = confirmBrowseAway; //the code from here down
// was needed to 'trick' firefox 2.x to work too
function confirmBrowseAway()
{
if (!NonExistentVariable) {
return "";
}
}
Hi,
I'm quiet sure, but I've decided to ask:
Is there a posibility to block (disable) "back" (prev page) action/button in browser?
best regards[/QUOTE]
0.1.9 — BETA 5.16