Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Navigator javaEnabled() method

Navigator javaEnabled() method

Navigator Object Reference Navigator object


Definition and Usage

The javaEnabled() method returns a Boolean value indicating whether the browser supports and has enabled Java. If so, it returns true; otherwise it returns false.

Syntax

navigator.javaEnabled()


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the javaEnabled() method.


Example

Example

The example below will return a Boolean value indicating whether Java is enabled in the current browser:

Output:

Try it »


Navigator Object Reference Navigator object