ns21 said the following on 8/8/2006 2:46 AM:
How can the browser back button be disabled
Make sure there is no other page opened first. Otherwise, it can't be
disabled.
If the form is submitting information to other pages or
submitting to itself or using redirections.
Whether it is submitting information to another page, itself, to
nowhere, using redirects, is all irrelevant. You can't disable the back
button if the browser enables it.
I tried the tweaks like history.forward(1) in each page to prevent user
to navigate back but its not very effective.
It's not a "tweak", its a .001% effective hack is all.
The server side scripting is done using ASP.
ASP, PHP, PERL, it's irrelevant what server side language is used to
generate what the browser deals with.
you may ask that why at first place I want to disable the browser back
button, this is due to the following issue
http://groups.google.co.in/group/asp...a38b4635b32b88
Fix your back end and stop trying to fix the wrong problem. Your server
side code should be able to handle *anything* the client does - and -
recover from it without client side hacks to prop it up.
In absence of response from responsible MVPs,
I only know 1 responsible MVP.
I decided to provide a back button in the application that use
redirection mechanisms but since user always has back button on
browser, it makes the application error-prone.
If the Back button breaks your app, it was error-prone before the Back
button was discovered.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/