Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disable Back button on Internet Explorer

 
Ramesh Kumar Swarnkar
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic