| Author |
Browser Back Button
|
Sahil Sharma
Ranch Hand
Joined: Aug 27, 2003
Posts: 152
|
|
Hi, I need to handle the IE back button in the following manner. Whenever user clicks on the browser back button the browser should display "Warning age has expired" message. I want to know can this be achieved thru Javascript, if yes then how? Please Help. [Bear edit: not so urgent] [ April 08, 2005: Message edited by: Bear Bibeault ]
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
Doesn't sound urgent to me. Search the HTML or JSP forums (since this is an HTML question) and you should find the answer. You don't need JavaScript to do this.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Ashish Chopra
Ranch Hand
Joined: Nov 30, 2004
Posts: 134
|
|
|
You can do this by using sessions. For more details on sessions using Java Servlets , look here
|
Quis Custodiet Ipsos Custodes<br /> <br />My blog: <a href="http://www.coherentrambling.blogspot.com" target="_blank" rel="nofollow">http://www.coherentrambling.blogspot.com</a>
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
Originally posted by Ashish Chopra: You can do this by using sessions. For more details on sessions using Java Servlets , look here
Hmm. What does a session have to do with expiring a page?
|
 |
Ashish Chopra
Ranch Hand
Joined: Nov 30, 2004
Posts: 134
|
|
Originally posted by Paul Sturrock: Hmm. What does a session have to do with expiring a page?
The error message that will be displayed by using sessions in case of pressing the back button would be "session expired" and I guess this was the functionality that was desired. This is commonly used in banking application websites. This functionality is typically used when you log out of your e-mail account & try to go back to it using the back button. There it says " your session has expired, please relogin!" [ April 08, 2005: Message edited by: Ashish Chopra ]
|
 |
Srinivasa Raghavan
Ranch Hand
Joined: Sep 28, 2004
Posts: 1228
|
|
|
Do you mean to say the work of session is to display "your session has expired, please relogin!"
|
Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
This functionality is typically used when you log out of your e-mail account & try to go back to it using the back button. There it says " your session has expired, please relogin!"
True, but the post was about expiring a page not a session. And you can do that with meta tags.
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24056
|
|
|
THis doesn't seem to have anything to do with Java. I'm moving it to HTML.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Eric
|
 |
 |
|
|
subject: Browser Back Button
|
|
|