This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: prevent "control n" from opening a new browser window with an applet
 
Similar Threads
Correct way to use getSession() in actions?
controlling the browser's back & forward buttons
Javascript / Java
Applet is not sowing the correct size
disabling resize button