Navigator: javaEnabled() method

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

This method always returns false.

Syntax

js
javaEnabled()

Parameters

None.

Return value

The boolean value false.

Examples

js
if (window.navigator.javaEnabled()) {
  // code will never be executed; the condition is always false
}

Specifications

Specification
HTML
# dom-navigator-javaenabled

Browser compatibility