Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | Java | Q4070 [ previous next ]

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?'

©2018 Martin Webb