How to forbid "back" button 
Author Message
 How to forbid "back" button

I have a page "A" which is generated by Java Servlet, if
user click a button , it will go to page "B" which is also
generated by Java Servlet. I want user to click a button
in "B" to back to "A" not just click IE "back"
button ,because I needs to pass some params to "A".I have
two choice : one is to forbid IE "Back";the other is when
user click IE "Back" button ,I display an error message in
"B" and the page doesn't go to "A".
But there isn't "onBack" event,then what shall I do?


Sun, 29 Feb 2004 11:28:56 GMT  
 How to forbid "back" button
The back button is client side activity and you can't forbid it. Look for a
different solution.

yabba



Quote:

>I have a page "A" which is generated by Java Servlet, if
>user click a button , it will go to page "B" which is also
>generated by Java Servlet. I want user to click a button
>in "B" to back to "A" not just click IE "back"
>button ,because I needs to pass some params to "A".I have
>two choice : one is to forbid IE "Back";the other is when
>user click IE "Back" button ,I display an error message in
>"B" and the page doesn't go to "A".
>But there isn't "onBack" event,then what shall I do?



Sun, 29 Feb 2004 13:41:49 GMT  
 How to forbid "back" button

You can change the page that the user goes to by setting
this command under your "back" and "forward" buttons.
document.location.replace("location");

Quote:
>-----Original Message-----
>The back button is client side activity and you can't

forbid it. Look for a
Quote:
>different solution.

>yabba



>>I have a page "A" which is generated by Java Servlet, if
>>user click a button , it will go to page "B" which is
also
>>generated by Java Servlet. I want user to click a button
>>in "B" to back to "A" not just click IE "back"
>>button ,because I needs to pass some params to "A".I
have
>>two choice : one is to forbid IE "Back";the other is
when
>>user click IE "Back" button ,I display an error message
in
>>"B" and the page doesn't go to "A".
>>But there isn't "onBack" event,then what shall I do?

>.



Sun, 29 Feb 2004 23:23:45 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Disabling "BACK"/"FORWARD" buttons

2. Disabling "BACK"/"FORWARD" buttons

3. How to disable the "Back" button

4. Disable "Back" Button

5. Reload page on "back"

6. Remove Links From "Back" Navigation

7. How do I Prevent a "Back"

8. Going "Back" in server-side script

9. "Back" upset by vbScript

10. passing Exec.StdOut back "live"?

11. Datarefreshment after ging "back"

12. forcing a browser "Back"

 

 
Powered by phpBB® Forum Software