blob: 746b108c8e4e9691fea2685a5b2dfe3e3f9ad39f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
---
title: NavigatorPlugins.javaEnabled
slug: orphaned/Web/API/NavigatorPlugins/javaEnabled
translation_of: Web/API/NavigatorPlugins/javaEnabled
original_slug: Web/API/NavigatorPlugins/javaEnabled
---
<p>{{ APIRef("HTML DOM") }}</p>
<h3 id="Summary" name="Summary">概述</h3>
<p>该方法用来表明当前浏览器是否激活了Java.</p>
<h3 id="Syntax" name="Syntax">语法</h3>
<pre class="eval"><em>result</em> = window.navigator.javaEnabled()
</pre>
<h3 id="Example" name="Example">例子</h3>
<pre class="eval">if (window.navigator.javaEnabled()) {
// 浏览器中Java可用
}
</pre>
<h3 id="Notes" name="Notes">备注</h3>
<p>该方法的返回值是用来表明浏览器的当前配置文件是否允许使用Java的, 而不是表明浏览器是否支持Java(安装有Java插件).</p>
<h3 id="Specification" name="Specification">规范</h3>
<p>{{ DOM0() }}</p>
|