*
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
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: prevent "control n" from opening a new browser window with an applet