Click to See Complete Forum and Search --> : Browser Back Button Disabled


adalby
12-22-2005, 08:38 AM
Is it possible to disable the "Back" button on the browser on a certain page?

Situation:
I have a form that a client can submit and once submitted it takes them to a review page where they see the submitted results. I have a link that say "Revise Here" on that page if an error is made. This is what they are suppose to use to overwrite their data.

Problem:
Once they look at the data they just submitted and see a mistake they hit the back button instead to revise the previous form and then they submit it again creating a second data set in the database for the same form. Not good.

Any ideas???
Aaron

bathurst_guy
12-22-2005, 08:44 AM
You could set a cookie when the form is submitted, and then on the form page check to see if the cookie exists, if so do you stuff that would happen if they clicked on the Revise Here link, otherwise display the form?

adalby
12-22-2005, 08:58 AM
Not sure what you mean? Can you give me an example??


You could set a cookie when the form is submitted, and then on the form page check to see if the cookie exists, if so do you stuff that would happen if they clicked on the Revise Here link, otherwise display the form?

felgall
12-22-2005, 02:59 PM
The back button is part of the browser and not part of your site. It therefore belongs to your visitor and thus security doesn't allow you to affect it.

webstuff
12-22-2005, 05:39 PM
Try looking into the history.back() call, you can pass a numeric value, passing a zero should produce the desired result, if you look in the internet, you will find examples of this method.