Skip to content

Commit

Permalink
Doc that navigator.javaEnabled() is always false
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Mar 5, 2021
1 parent 1bbd36d commit e620dbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/navigator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3 id="Standard_properties">Standard properties</h3>
<dt>{{domxref("NavigatorConcurrentHardware.hardwareConcurrency")}} {{readonlyInline}}</dt>
<dd>Returns the number of logical processor cores available.</dd>
<dt>{{domxref("NavigatorPlugins.javaEnabled")}} {{readonlyInline}}</dt>
<dd>Returns a {{domxref("Boolean")}} flag indicating whether the host browser is Java-enabled or not.</dd>
<dd>Returns false.</dd>
<dt>{{domxref('Navigator.keyboard')}} {{readonlyinline}} {{experimental_inline}}</dt>
<dd>Returns a {{domxref('Keyboard')}} object which provides access to functions that retrieve keyboard layout maps and toggle capturing of key presses from the physical keyboard.</dd>
<dt>{{domxref("NavigatorLanguage.language")}} {{readonlyInline}}</dt>
Expand Down
8 changes: 2 additions & 6 deletions files/en-us/web/api/navigatorplugins/javaenabled/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
---
<p>{{ APIRef("HTML DOM") }}</p>

<p>This method indicates whether the current browser is Java-enabled or not.</p>
<p>This method always returns false.</p>

<h2 id="Syntax">Syntax</h2>

Expand All @@ -19,14 +19,10 @@ <h2 id="Syntax">Syntax</h2>
<h2 id="Example">Example</h2>

<pre class="eval">if (window.navigator.javaEnabled()) {
// browser has java
// code will never be executed; the condition is always false
}
</pre>

<h2 id="Notes">Notes</h2>

<p>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.</p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
Expand Down

0 comments on commit e620dbb

Please sign in to comment.