NavigatorPlugins.javaEnabled

  • Revision slug: Web/API/NavigatorPlugins.javaEnabled
  • Revision title: NavigatorPlugins.javaEnabled
  • Revision id: 476623
  • Created:
  • Creator: kscarfone
  • Is current revision? No
  • Comment Updated tags

Revision Content

{{ DomRef() }}

Summary

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

Syntax

result = window.navigator.javaEnabled()

Example

if (window.navigator.javaEnabled()) {
   // browser has java
}

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.

Specification

DOM Level 0. Not part of specification.

{{ languages( { "ja": "ja/DOM/window.navigator.javaEnabled","zh-cn": "zh-cn/DOM/window.navigator.javaEnabled", "pl": "pl/DOM/window.navigator.javaEnabled" } ) }}

Revision Source

<p>{{ DomRef() }}</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>This method indicates whether the current browser is Java-enabled or not.</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre class="eval">
<em>result</em> = window.navigator.javaEnabled()
</pre>
<h3 id="Example" name="Example">Example</h3>
<pre class="eval">
if (window.navigator.javaEnabled()) {
   // browser has java
}
</pre>
<h3 id="Notes" name="Notes">Notes</h3>
<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>
<h3 id="Specification" name="Specification">Specification</h3>
<p>DOM Level 0. Not part of specification.</p>
<p>{{ languages( { "ja": "ja/DOM/window.navigator.javaEnabled","zh-cn": "zh-cn/DOM/window.navigator.javaEnabled", "pl": "pl/DOM/window.navigator.javaEnabled" } ) }}</p>
Revert to this revision