I am developing an .aspx page which will ultimately launch an applet after the user clicks on a button (I am using the tag). So, I would like to
Make in your applet a method
public boolean isRunning() { return true; }
Now create an applet:
And now wrap this code in some helper function
try {
var x = document.getElementById('someId').isRunning()
return x;
} catch(e) {
return false;
}
Why this works? If applet runs it will return true. If applet doesn't run or Java is not supported you'll get an exception, so you'll get false.