Navigator javaEnabled () method
Definition and Usage
javaEnabled () method returns a Boolean value indicating whether the browser supports and enabled Java. If so, it returns true, otherwise returns false.
grammar
navigator.javaEnabled()
Browser Support
All major browsers support javaEnabled () method.
Examples
Examples
The following example will return if the current browser is Java-enabled Boolean value:
<html>
<body>
<script>
document.write("启用Java: " + navigator.javaEnabled());
</script>
</body>
</html>
<body>
<script>
document.write("启用Java: " + navigator.javaEnabled());
</script>
</body>
</html>
Output:
try it"
Navigator Objects