<...script language="JavaScript">
/* Gecko (Netscape/Mozilla): link to the application's JNLP file.
* IE: Link to download page to auto-download-and-install JRE,
* if needed, and then launch the app.
*/
var javawsInstalled = 0;
if (navigator.userAgent.indexOf("Gecko") !=-1) {
if (navigator.mimeTypes && navigator.mimeTypes.length) {
if (navigator.mimeTypes['application/x-java-jnlp-file']) {
javawsInstalled = 1;
}
}
if (javawsInstalled) {
/* Non-IE browser, JRE present */
document.write("Click here ");
document.write("to launch the application.
");
document.write("(It will be downloaded if it isn't already installed.)");
} else {
/* Non-IE browser, JRE absent */
document.write("");
document.write("");
document.write("Download the Java Runtime Environment (JRE) from the ");
document.write("Java download page. ");
document.write("Then reboot and come back to this page to launch the application.");
document.write("
");
document.write("Note:
");
document.write("If you're a developer, ");
document.write("download the Java Development Kit (JDK) instead. " );
document.write("It includes the JRE.");
document.write("
");
}
} else {
/* Internet Explorer */
document.write("Click here ");
document.write("to run the application. ");
document.write("
");
document.write("The Java Runtime Environment (JRE) ");
document.write("will be downloaded and installed (if needed), ");
document.write("after which the application will launch. ");
document.write("");
document.write("Note:
");
document.write("If you're a developer, ");
document.write("Click here and ");
document.write("download the Java Development Kit (JDK) instead. ");
document.write("(It includes the JRE.)");
document.write("
");
}