From c0f6584884eb831c7dedd0f8248cb40ca6d76e40 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Fri, 5 Mar 2021 09:36:38 +0900 Subject: [PATCH] Doc that navigator.javaEnabled() is always false https://html.spec.whatwg.org/multipage/obsolete.html#dom-navigator-javaenabled --- .../en-us/web/api/navigatorplugins/javaenabled/index.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/files/en-us/web/api/navigatorplugins/javaenabled/index.html b/files/en-us/web/api/navigatorplugins/javaenabled/index.html index 8be93ba9d0a605c..f929b6a1dfda16a 100644 --- a/files/en-us/web/api/navigatorplugins/javaenabled/index.html +++ b/files/en-us/web/api/navigatorplugins/javaenabled/index.html @@ -9,7 +9,7 @@ ---

{{ APIRef("HTML DOM") }}

-

This method indicates whether the current browser is Java-enabled or not.

+

This method always returns false.

Syntax

@@ -19,14 +19,10 @@

Syntax

Example

if (window.navigator.javaEnabled()) {
-   // browser has java
+   // code will never be executed; the condition is always false
 }
 
-

Notes

- -

The return value for this method indicates whether the preference that controls Java is on or off - not whether the browser offers Java support in general.

-

Specifications