• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to disable back button in jsp page using js

 
Ankit Khare
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My jsp page contains simple message and ok button .i dont want user to click on back button and navigate back to last page ..

dose any body have any idea for disabeling back button of IE...
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you search the forum for text like "disabling back button" you will find a lot of posts discussing it.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also go through PRG Technique
 
Pravin Shirke
Ranch Hand
Posts: 152
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ankit,
I think You can use Javascript for disabling the browser back button.


Inside the script tag. But this a bad design to disable the browser back button. can i know why do you want this.
 
Ankit Khare
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
basically that page is a result for redirection when license is getting over and if from that page if some one can go back then it can create problem..
 
Ankit Khare
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what does this function call does::

window.history.forward(1);
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic