disabling browser back button
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amir_Pashazadeh
Posted On:   Sunday, May 30, 2004 02:33 AM

Hi


How it is possible to disable browser's back button by clearing back history?


Amir Pashazadeh

Re: disabling browser back button

Posted By:   Naveen_Singh  
Posted On:   Monday, May 31, 2004 11:16 PM

There is a way to do so. It's pretty simple.

In your JSP where you don't want the back functionality put this code between your ----- tags



history.forward();




And that is all you need to do.

Cheers.
Naveen Singh Langhae
langhae@india.hp.com

Re: disabling browser back button

Posted By:   Jens_Dibbern  
Posted On:   Sunday, May 30, 2004 12:22 PM

Hi Amir,

you simply cannot disable the back button in any generic way as far as I know. You can look at http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html and try to set every header regarding caching and instant expiration. You can try the relevent meta tags in your html page, too. In either case your best result will be this ugly white page telling the user the page contents are invalid.



HTH
Jens
About | Sitemap | Contact