Click to See Complete Forum and Search --> : force users to close applets first


crandall_c
07-08-2003, 03:15 PM
trying to write or find javascript that can help me do one of two things:

1. Protect the Browser window from being closed before the applet.
2. Creating a warning that appears when the user tries to close the browser before closing the applet

Basically, the users need to be "encouraged" to close the applet before closing the browser window.

Jona
07-08-2003, 03:47 PM
I would use <body onunload="runFunctionToCloseAppletAutomatically();">
But unfortunately, I don't know how to communicate with an applet via JavaScript. Khalid Ali does though, I believe.

[J]ona