wood burning stoves 2.0*
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
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: 356
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
subject: disabling back button in browser
Similar Threads
How to call a javascript function on back button press of the brower window
How to Uncheck the checkbox
How to disable IE back button.
selenium rc - go forward
disable browser caching not working