• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disable browser backward button

 
Deepanshu Saxena
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the user logout it goes to the login page. I want to disable the browser back button. How can i do ?
 
Wendy Gibbons
Bartender
Posts: 1110
Eclipse IDE Oracle VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i was reading head first jsp and servlets, they had a big chapter on "it's not your browser", basically the idea is it isn't your applications browser to fiddle with things.
So for example if you disable the back button, the user changes tabs to another web page, yet their back button is still disabled.

The point is even if you can YOU SHOULDN'T do it.

but I am forwarding you to the jsp forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64724
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
J. Kevin Robbins
Bartender
Posts: 1745
19
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you do this, you should be covered in honey and staked out on an anthill. Few things are more infuriating than a web page that won't let you leave.

Don't mess with the browser!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic