<head> of your html document
<script type="text/javascript">
var java1 = "";
if (navigator.javaEnabled() == true) java1 = "Active";
else if (navigator.javaEnabled() == false) java1 = "Deactivated";
else java1 = "Unsupported Request";
</script>
<body>
<script type="text/javascript">
<!--
document.write(""+java1+"");
//-->
</script>
Browser Java Enabled - Displays:
Save the following script as javaenabled.js
<!--
var java2 = "";
if (navigator.javaEnabled() == true) java2 = "Active";
else if (navigator.javaEnabled() == false) java2 = "Deactivated";
else java2 = "Unsupported Request";
document.write(""+java2+"");
//-->
<body> of your html document
<script src="/js/javaenabled.js" type="text/javascript"></script>
Browser Java Enabled - Displays:
<body> of your html document
<script type="text/javascript">
<!--
var java3 = "";
if (navigator.javaEnabled() == true) java3 = "Active";
else if (navigator.javaEnabled() == false) java3 = "Deactivated";
else java3 = "Unsupported Request";
document.write(""+java3+"");
//-->
</script>
Browser Java Enabled - Displays:
Java is a programming language originally developed by James Gosling at Sun Microsystems, which has since merged into Oracle Corporation, and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode, class file, that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java is a general purpose, concurrent, class-based, object-oriented language which is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers 'write once, run anywhere,' meaning code which runs on Windows does not need to be edited to run on a Mac. Java is currently one of the most popular programming languages in use, particularly for client-server web applications, with a reported 10 million users. The original and reference implementation Java compilers, virtual machines, and class libraries were developed by Sun from 1995. As of May 2007, in compliance with the specifications of the Java Community Process, Sun re-licensed most of its Java technologies under the GNU General Public License. Others have also developed alternative implementations of these Sun technologies, such as the GNU Compiler for Java and GNU Classpath.