How to close the browser from an Applet?

I am having an Applet which is loaded in Browser?

If I try to close the Applet which is running in Browser using

"System.exit(0);"

It is closing all the Currently running Browser applications.

which i dont want to do,

Please tell me an alternative?

Its urgent

[302 byte] By [SPBalaa] at [2007-10-3 4:09:17]
# 1
You can't close an applet which is inside a browser.It may be more appropriate to just disable the appletwith seEnabled(false);
PMJaina at 2007-7-14 22:09:18 > top of Java-index,Java Essentials,Java Programming...
# 2
It has no change ,It is not working alsoAnd any how I want to close the browser.Please help
SPBalaa at 2007-7-14 22:09:18 > top of Java-index,Java Essentials,Java Programming...
# 3
I certainly hope you can't use an applet to close the browser. That would be extremely user-hostile.
DrClapa at 2007-7-14 22:09:18 > top of Java-index,Java Essentials,Java Programming...
# 4
Two ways I can think of from the top of my head:1) Redirect the applet to another page which has JavaScript code to close the browser2) Communicate with JavaScript on the page to close the browserNote that some browsers won't allow a script to close the window.
tymer99a at 2007-7-14 22:09:18 > top of Java-index,Java Essentials,Java Programming...