JavaScript Tutorial/Navigator/javaEnabled
<HTML>
<BODY>
<SCRIPT language="JavaScript">
<!--
var hasJava= navigator.javaEnabled()
if (hasJava==true)
window.alert("You have Java enabled");
else
window.alert("No Java?");
//-->
</SCRIPT>
</BODY>
</HTML>