• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Browser Disable

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to diable browsers back button in Monzila browser through java?
 
Ranch Hand
Posts: 1970
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't.

In general, neither Java applets nor JavaScript scripts can twiddle browser settings. This is for the very good reason that there are loads of bad people out there, trying to do all sorts of bad stuff to your browser.

Dealing with the Back button is one of the bigger problems of writing clever Web pages, using things like Applets, AJAX etc. You can write your code in such a way that pressing Back has less bad effects. You can also programmatically add/modify history entries, to change what Back does; I'm no expert on this, having only read about it, not done it, and I suspect how well it works varies between browsers and their configurations. Lastly, you can get your app to pop up a new, undecorated window with no Back button; this suffers from (a) user may disable pop-ups, and (b) user can still go Back using keyboard shortcut.

I suggest Googling for stuff about handling the Back button. Also search JavaRanch forums. When you've read a bit and maybe have further questions, try posting in a more appropriate forum, as this is really not much to do with Java in General. Maybe try the HTML/JavaScript one, the Servlets one, or the Applets one?
[ August 29, 2007: Message edited by: Peter Chase ]
 
Your mother is a hamster and your father smells of tiny ads!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic