Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q4070 How do I close the browser window when an applet closes?

irt.org | Knowledge Base | Java | Q4070 [ previous next ]

Q4070 How do I close the browser window when an applet closes?

When you want to close the applet fire some event like button press to close the applet. In the code of the action of that event use "this.showDocument(URL)" to load some other page.

Now this page will have JavaScript. You can name this page as exit page. When this page is loaded it will call a JavaScript function "window.close()" which will close the browser window.

Feedback on 'Q4070 How do I close the browser window when an applet closes?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.