File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "disabling back button  in browser" Watch "disabling back button  in browser" New topic

disabling back button in browser

Naresh Chaurasia
Ranch Hand

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

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


Paul Sturrock

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
Don't get me started about those stupid light bulbs.
subject: disabling back button in browser