Java Security FAQ: Quit the browser


Here's an applet that tries to cause the browser that it's running in to quit:

Here's the source.

Conclusion:

An applet can't kill the browser that loaded it, unless you load the applet from a directory on your CLASSPATH.


Back to the Java Security FAQ