| Author |
How to disable back button in jsp page using js
|
Ankit Khare
Greenhorn
Joined: Apr 24, 2009
Posts: 4
|
|
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
Joined: Mar 24, 2008
Posts: 3670
|
|
|
If you search the forum for text like "disabling back button" you will find a lot of posts discussing it.
|
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
|
Also go through PRG Technique
|
 |
Pravin Shirke
Ranch Hand
Joined: Apr 05, 2008
Posts: 146
|
|
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.
|
[Vipassana] - It is seeing the reality as it is, And not as you want it to be.!!!
SCJP1.5.
|
 |
Ankit Khare
Greenhorn
Joined: Apr 24, 2009
Posts: 4
|
|
|
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
Joined: Apr 24, 2009
Posts: 4
|
|
what does this function call does::
window.history.forward(1);
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56229
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: How to disable back button in jsp page using js
|
|
|