Feedback on: irt.org FAQ Knowledge Base Q311
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Best answer to this question that I have found on the Web, even after spending a while searching.
Technical:
Not technical enough
Comments:
It doesn't work if I have a form wil method=Post!
All the data will lost!
Worth:
Very worth reading
Comments:
I think I found a "solution". Excuse my english, I'm Spanish. You must create two final pages, to avoid the user go BACK. You must use the OnUnLoad event (BODY)where you make the submit (netscape) or the location.href (EXPLORER) to go to one SERVLET. You'll go from one final page to the other using the forward(req,res) in the servlet code. For further explanations I can help you (I hope) from my e-mail address. Bye, Sancho.
Length:
Too long
Comments:
Bit of a long road for a shortcut. All you need to do is set up a redirect page to your main page. Every time the user clicks back it will kick him straight back to the page.
Worth:
Very worth reading
Comments:
The last option that employs the forward() method of the window.history property worked best for me.
The option that employed self.close is not a feasible option according O'Reilly's JavaScript guide since you need UniversalBrowserWrite privileges to close a browser window. When I tried it, I got a warning asking me if I want to close the window.
Worth:
Worth reading
Length:
Technical:
Comments:
that was helpful for me.thank you soooooooooooooooooooooo much
Worth:
Length:
Technical:
Comments:
Here's a way to disable "Back" button in FireFox as in MSIE.
<html><head>
<script type="text/javascript">
function noBack(){ window.history.forward(); }
</script>
</head>
<body onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload="">
...
</body></html>
It seems to work flawlessly.
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
We are using window.history.forward() method with this script :
<script type="text/javascript">
function noBack(){window.history.forward()}
noBack();
window.onload=noBack;
window.onpageshow=function(evt){if(evt.persisted)noBack()}
window.onunload=function(){void(0)}
</script>
It works with IE, Firefox, Safari, Opera.
Beware of visitors' reactions : they can be very negative.
For use in intranet or https only.