954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

i want to disable forward and back button of IE in jsp page

i want to disable forward and back button of IE in jsp page

afruja
Newbie Poster
1 post since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

It is not possible you cannot control browser buttons from JSP/Javascript

parry_kulk
Junior Poster
Team Colleague
167 posts since Jan 2007
Reputation Points: 26
Solved Threads: 41
 

technically true. But you could keep a record of where the user has been and when trying to get to the previous (next in that case wouldn't ever happen) URL simply reload the page they're on.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Hi jwenting, woudnt the user get confused when he/she clicks on back button and the current page reloads?
Could you elaborate more on this approach?


Also, long back had tried using

window.location.replace

but was not satisfied with it. Maybe was not able to implement it properly.

If you could shed more light on it, it would be useful as this is a very common scenario to deal with in web applications

parry_kulk
Junior Poster
Team Colleague
167 posts since Jan 2007
Reputation Points: 26
Solved Threads: 41
 
i want to disable forward and back button of IE in jsp page

Perhaps it would be better to tell us WHY you want to disable the forward/back button. Maybe what you are trying to achieve can be done in another way than disabling the buttons.

javaAddict
Nearly a Senior Poster
Team Colleague
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
 
Hi jwenting, woudnt the user get confused when he/she clicks on back button and the current page reloads?

Probably, but it would have the desired effect :)

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You