PDA

View Full Version : Disbling all Browser Windows Back Button



n.nsiva
08-28-2006, 06:38 AM
Dear dynamic drivers

I want to diable the back button in all type of browsers using javascript code, plz provide the code sinppet as soon as possible.

Sivakumar.N

novarli
08-28-2006, 06:49 AM
Page A.htm calls Page B.htm

User should not be allowed to go to Page A.htm from Page B.htm

Put the code below in Page A.htm



<Script>
window.history.forward(1);
</Script>

mwinter
08-28-2006, 10:52 AM
I want to diable the back button ...

Stop wanting that, then.

If using the Back button breaks something, then change whatever process is involved so that it can handle the user moving back through the history.

Even if you could disable the Back button, there will be people for which it won't work and they could still break your site.

Mike