Back to Content

Navigator: javaEnabled() method

files/en-us/web/api/navigator/javaenabled/index.md

latest374 B
Original Source

{{APIRef("HTML DOM")}}

This method always returns false.

Syntax

js-nolint
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

{{Specifications}}

Browser compatibility

{{Compat}}