This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Instance of Browser open!

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When one instance of browser(in which an applet is running) is open, I don't want to allow user to open another instance of Browser.
How I can do this with the use of Javascript?
Thanks
Angela
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Angela
You can't do that with JavaScript. That's about as close to taking over someones computer as you can get. I don't think users would appreciate it.
You can play with the current window that the user has open to some degree, but you'll not be able to stop them from just going to start|programs|internet explorer.
If your trying to prevent someone from running two instances of the applet then you'll need to do something server side. Capture their ip and allow only one connection at a time, or something similar.
hope that helps a little

Dave
 
    Bookmark Topic Watch Topic
  • New Topic