THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Navigator javaEnabled() Method

Navigator Object Reference Navigator Object

Example

Find out if your browser has Java enabled:

var x = "Java Enabled: " + navigator.javaEnabled();

The result of x will be:

Try it yourself »

Definition and Usage

The javaEnabled() method returns a Boolean value that specifies whether the browser has Java enabled.


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Method
javaEnabled() Yes Yes Yes Yes Yes

Syntax

navigator.javaEnabled()

Parameters

None

Technical Details

Return Value: A Boolean, indicating whether the browser has Java enabled.

Returns true if enabled, false if not.

Navigator Object Reference Navigator Object