[Chapter 21] Reference: Navigator.javaEnabled()
Author: David Flanagan
Date: Fri Aug 29 11:18:14 1997

#

| Chapter 21 JavaScript Reference |

# Navigator.javaEnabled() Method

## Name

Navigator.javaEnabled() Method---test whether Java is available

## Availability

Navigator 3.0

## Synopsis

    navigator.javaEnabled()

### Arguments

None.

### Returns

`true` if, and only if, Java is supported by and enabled on the current browser.

## Description

You can use `navigator.javaEnabled()` to check whether the current browser will be able to display applets, and also whether JavaScript will be able to work with Java objects through the Properties object. If Java is not available, you can use JavaScript to perform some alternative action.

## See Also

"Document.applets[]", "Navigator", Properties

Navigator.appVersion |  | Navigator.mimeTypes[]