my dog learned polymorphism*
The moose likes Applets and the fly likes prevent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "prevent "control n" from opening a new browser window with an applet" Watch "prevent "control n" from opening a new browser window with an applet" New topic
Author

prevent "control n" from opening a new browser window with an applet

Anne Forumer
Ranch Hand

Joined: Apr 19, 2004
Posts: 72
I have an applet, A, totally occupying a browser window. Not surprisingly, A new browser window opens with another instance of applet A in it. I put some javascript in the HEAD section to intercept "Control N", but it is not preventing a new browser window from opening! I tried to test it by trying to pop up an alert box if I type "control N". javascript works if there is no applet on the page.

Should this be working? If no, what do I need to do? How does an applet hand-off keystrokes like "control N" to the browser?

Thanks!
 
Don't get me started about those stupid light bulbs.
 
subject: prevent "control n" from opening a new browser window with an applet
 
Similar Threads
Javascript / Java
Applet is not sowing the correct size
disabling resize button
Correct way to use getSession() in actions?
controlling the browser's back & forward buttons