aspose file tools*
The moose likes Servlets and the fly likes disabling back button  in browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "disabling back button  in browser" Watch "disabling back button  in browser" New topic
Author

disabling back button in browser

Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 356
hi,
i have built an application and want to disable back button for the user. how can i do it
Thnx,


SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
No. You cant.
Wish we could do that.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Try to use

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

instead.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

The "best-practice" way to manage this is to make sure your application can properly handle this kind of navigation, rather than trying to stop the user from performing what is a perfectly valid operation.

Have a search through this forum - this question has been addressed countless times.
[ May 19, 2005: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: disabling back button in browser