• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Disable Back button on Internet Explorer

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Just the other day, I was thinking ... about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic