Hi,
I am trying to disable the back button using following JavaScript code.
It works in firefox browser but does not work in IE (all version)
Here is what I am using.
<Script>
window.history.forward(1);
</Script>
The Application is jsp/servlet.
Can you please help me?
Thanks.
rawar
-
Help needed with disabling IE browser back button (5 messages)
- Posted by: umesh rawar
- Posted on: June 17 2005 12:04 EDT
Threaded Messages (5)
- Help needed with disabling IE browser back button by Fred Bloggs on June 17 2005 12:37 EDT
- disabling IE browser back button by umesh rawar on June 17 2005 13:44 EDT
- history.forward in every page by Biswa Das on June 17 2005 14:52 EDT
-
I tried that and by umesh rawar on June 17 2005 03:31 EDT
- history.go(1). by Biswa Das on June 17 2005 05:13 EDT
-
I tried that and by umesh rawar on June 17 2005 03:31 EDT
- history.forward in every page by Biswa Das on June 17 2005 14:52 EDT
-
Help needed with disabling IE browser back button[ Go to top ]
- Posted by: Fred Bloggs
- Posted on: June 17 2005 12:37 EDT
- in response to umesh rawar
Not sure quite what you are trying to do but if you use location.replace("myurl"); to do the navigation the back button does not take the user back to the current page after a script navigates to some other page. -
disabling IE browser back button[ Go to top ]
- Posted by: umesh rawar
- Posted on: June 17 2005 13:44 EDT
- in response to umesh rawar
I am trying to disable the Browser back button with 3 lines of code (code is in my initial post)
From FireFox, when I test back button I get the same page displayed (which is OK) but when I test the same thing from IE it does not work. I.e. from IE. From IE after I click a back button, it displays a page "page cannot be displayed" or some time "Warning: Page has Expired" but I want the same page to be displayed when I click back button.
It works in Firefox why not in IE
Please help.
Thanks -
history.forward in every page[ Go to top ]
- Posted by: Biswa Das
- Posted on: June 17 2005 14:52 EDT
- in response to umesh rawar
history.forward in every page -
I tried that and[ Go to top ]
- Posted by: umesh rawar
- Posted on: June 17 2005 15:31 EDT
- in response to Biswa Das
It does not work in IE. I have 15 jsp files in this apps and I have added history.forward on every page.
What could be the reason? Thanks -
history.go(1).[ Go to top ]
- Posted by: Biswa Das
- Posted on: June 17 2005 17:13 EDT
- in response to umesh rawar
window.onload="history.go(1);"