• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Browser Back Button

 
Sahil Sharma
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ashish Chopra
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do this by using sessions. For more details on sessions using Java Servlets , look here
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean to say the work of session is to display "your session has expired, please relogin!"
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THis doesn't seem to have anything to do with Java. I'm moving it to HTML.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic