Latest web development tutorials

Navigator javaEnabled () method

Navigator Object Reference Navigator Objects

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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>

Output:


try it"


Navigator Object Reference Navigator Objects