| Author |
Disable Back button on Internet Explorer
|
Ramesh Kumar Swarnkar
Ranch Hand
Joined: Sep 15, 2003
Posts: 83
|
|
Hi Friends, I need to disable the back button of 'Internet Explorer'. My application has multiple screens designed in JSP.When a user goes to next page/screen by clicking some link or by posting some data, he/she would not be able to use the back button to come to previous screen. Is there any approach in JavaScript which I can use here in my application to disable the back button ? Please suggest some solution to achieve this. Regards, Ramesh
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
If you set the right header when you are using post, the user should get the expired page. Other than that, I would design my backend to handle the back button. You can look at at history.forward() hack that is posted around the net, but that really is not disabling the back button. Eric
|
 |
Ramesh Kumar Swarnkar
Ranch Hand
Joined: Sep 15, 2003
Posts: 83
|
|
If you set the right header when you are using post, the user should get the expired page. Other than that, I would design my backend to handle the back button.
Eric, thanks for response. can you please elaborate the above quote with some code segment!
|
 |
 |
|
|
subject: Disable Back button on Internet Explorer
|
|
|