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 c0f6584
Showing 1 changed file with 2 additions and 6 deletions.
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 c0f6584

Please sign in to comment.