diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/navigatorplugins | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/navigatorplugins')
-rw-r--r-- | files/ja/web/api/navigatorplugins/index.html | 107 | ||||
-rw-r--r-- | files/ja/web/api/navigatorplugins/javaenabled/index.html | 35 | ||||
-rw-r--r-- | files/ja/web/api/navigatorplugins/mimetypes/index.html | 33 | ||||
-rw-r--r-- | files/ja/web/api/navigatorplugins/plugins/index.html | 59 |
4 files changed, 234 insertions, 0 deletions
diff --git a/files/ja/web/api/navigatorplugins/index.html b/files/ja/web/api/navigatorplugins/index.html new file mode 100644 index 0000000000..8bc5017adc --- /dev/null +++ b/files/ja/web/api/navigatorplugins/index.html @@ -0,0 +1,107 @@ +--- +title: NavigatorPlugins +slug: Web/API/NavigatorPlugins +tags: + - API +translation_of: Web/API/NavigatorPlugins +--- +<p>{{APIRef("HTML DOM")}}{{SeeCompatTable}}</p> + +<p>The <code><strong>NavigatorPlugins</strong></code> interface contains methods and properties related to the plugins installed in the browser.</p> + +<p>There is no object of type <code>NavigatorPlugins</code>, but other interfaces, like {{domxref("Navigator")}}, implement it.</p> + +<h2 id="Properties">Properties</h2> + +<dl> + <dt>{{domxref("NavigatorPlugins.mimeTypes")}} {{readonlyInline}}{{experimental_inline}}</dt> + <dd>Returns an {{domxref("MimeTypeArray")}} listing the MIME types supported by the browser.</dd> + <dt>{{domxref("NavigatorPlugins.plugins")}} {{readonlyInline}}{{experimental_inline}}</dt> + <dd>Returns a {{domxref("PluginArray")}} listing the plugins installed in the browser.</dd> +</dl> + +<h2 id="Methods">Methods</h2> + +<p><em>The <code>NavigatorPlugins</code></em><em> interface doesn't inherit any method.</em></p> + +<dl> + <dt>{{domxref("NavigatorPlugins.javaEnabled")}} {{readonlyInline}}{{experimental_inline}}</dt> + <dd>Returns a {{domxref("Boolean")}} flag indicating whether the host browser is Java-enabled or not.</dd> +</dl> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', '#navigatorplugins', 'NavigatorPlugins')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<p>{{ CompatibilityTable() }}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari</th> + </tr> + <tr> + <td>Basic support</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Android</th> + <th>Chrome for Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Mobile</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Basic support</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatVersionUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="See_also">See also</h2> + +<ul> + <li>The {{domxref("Navigator")}} interface that implements it.</li> +</ul> diff --git a/files/ja/web/api/navigatorplugins/javaenabled/index.html b/files/ja/web/api/navigatorplugins/javaenabled/index.html new file mode 100644 index 0000000000..a8cd69a8be --- /dev/null +++ b/files/ja/web/api/navigatorplugins/javaenabled/index.html @@ -0,0 +1,35 @@ +--- +title: javaEnabled +slug: Web/API/NavigatorPlugins/javaEnabled +tags: + - DOM + - DOM_0 + - Gecko + - Gecko DOM Reference +translation_of: Web/API/NavigatorPlugins/javaEnabled +--- +<p> </p> +<p><br> + {{ ApiRef() }} {{ 英語版章題("Summary") }}</p> +<h3 id=".E6.A6.82.E8.A6.81" name=".E6.A6.82.E8.A6.81">概要</h3> +<p>このメソッドは、現在のブラウザで Java が有効かどうかを示します。</p> +<p>{{ 英語版章題("Syntax") }}</p> +<h3 id=".E6.A7.8B.E6.96.87" name=".E6.A7.8B.E6.96.87">構文</h3> +<pre class="eval"><i>result</i> = window.navigator.javaEnabled() +</pre> +<p>{{ 英語版章題("Example") }}</p> +<h3 id=".E4.BE.8B" name=".E4.BE.8B">例</h3> +<pre class="eval">if (window.navigator.javaEnabled()) { + // ブラウザで Java は有効です。 +} +</pre> +<p>{{ 英語版章題("Notes") }}</p> +<h3 id=".E6.B3.A8.E8.A8.98" name=".E6.B3.A8.E8.A8.98">注記</h3> +<p>このメソッドの戻り値は、一般的に、ブラウザが Java サポートを提供しているかどうかに関わらず、Java をコントロールする設定が有効か無効かを示します。</p> +<p>{{ 英語版章題("Specification") }}</p> +<h3 id=".E4.BB.95.E6.A7.98" name=".E4.BB.95.E6.A7.98">仕様</h3> +<p>{{ DOM0() }}</p> +<p> </p> +<div class="noinclude"> + </div> +<p>{{ languages( { "en": "en/DOM/window.navigator.javaEnabled", "pl": "pl/DOM/window.navigator.javaEnabled" } ) }}</p> diff --git a/files/ja/web/api/navigatorplugins/mimetypes/index.html b/files/ja/web/api/navigatorplugins/mimetypes/index.html new file mode 100644 index 0000000000..28f623c4bc --- /dev/null +++ b/files/ja/web/api/navigatorplugins/mimetypes/index.html @@ -0,0 +1,33 @@ +--- +title: mimeTypes +slug: Web/API/NavigatorPlugins/mimeTypes +tags: + - DOM + - DOM_0 + - Gecko + - Gecko DOM Reference +translation_of: Web/API/NavigatorPlugins/mimeTypes +--- +<p> </p> +<p>{{ ApiRef() }} {{ 英語版章題("Summary") }}</p> +<h3 id=".E6.A6.82.E8.A6.81" name=".E6.A6.82.E8.A6.81">概要</h3> +<p><code><a class="external" href="http://www.xulplanet.com/references/objref/MimeTypeArray.html">MimeTypeArray</a></code> オブジェクトを返します。このオブジェクトは、ブラウザが認識する MIME タイプを表す <code><a class="external" href="http://www.xulplanet.com/references/objref/MimeType.html">MimeType</a></code> オブジェクトのリストを含んでいます。</p> +<p>{{ 英語版章題("Syntax") }}</p> +<h3 id=".E6.A7.8B.E6.96.87" name=".E6.A7.8B.E6.96.87">構文</h3> +<pre class="eval"><i>mimeTypes</i> = navigator.mimeTypes; +</pre> +<p><code>mimeTypes</code> は、<code><a class="external" href="http://www.xulplanet.com/references/objref/MimeTypeArray.html">MimeTypeArray</a></code> オブジェクトです。このオブジェクトは、<code>length</code> プロパティを持ち、また、<code>item(index)</code> 及び <code>namedItem(name)</code> メソッドを持っています。</p> +<p>{{ 英語版章題("Example") }}</p> +<h3 id=".E4.BE.8B" name=".E4.BE.8B">例</h3> +<pre> alert(window.navigator.mimeTypes.item(0).description); // "Mozilla Default Plug-in" などをダイアログで表示します。 +</pre> +<p>{{ 英語版章題("Notes") }}</p> +<h3 id=".E6.B3.A8.E8.A8.98" name=".E6.B3.A8.E8.A8.98">注記</h3> +<p>例における mimeTypes プロパティの 0 番目の要素("Mozilla Default Plug-in" <code>MimeType</code> オブジェクト)の <code>type</code> プロパティの値は、<code>"image/x-macpaint"</code> のような 典型的な MIME 形式ではなく、<code>*</code> という値 です。</p> +<p>{{ 英語版章題("Specification") }}</p> +<h3 id=".E4.BB.95.E6.A7.98" name=".E4.BB.95.E6.A7.98">仕様</h3> +<p>{{ DOM0() }}</p> +<p> </p> +<div class="noinclude"> + </div> +<p>{{ languages( { "en": "en/DOM/window.navigator.mimeTypes", "pl": "pl/DOM/window.navigator.mimeTypes" } ) }}</p> diff --git a/files/ja/web/api/navigatorplugins/plugins/index.html b/files/ja/web/api/navigatorplugins/plugins/index.html new file mode 100644 index 0000000000..fa0e482b6d --- /dev/null +++ b/files/ja/web/api/navigatorplugins/plugins/index.html @@ -0,0 +1,59 @@ +--- +title: window.navigator.plugins +slug: Web/API/NavigatorPlugins/plugins +tags: + - DOM + - DOM_0 + - Gecko +translation_of: Web/API/NavigatorPlugins/plugins +--- +<div>{{ApiRef}} {{non-standard_header}}</div> + +<h2 id="Summary" name="Summary">概要</h2> + +<p>アプリケーションにインストールされたプラグインをリスト化した、{{domxref("PluginArray")}} オブジェクトを返します。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox"><var>plugins</var> = navigator.plugins; +</pre> + +<ul> + <li><var>plugins</var> : インストールされたプラグインを取得するための {{domxref("Plugin")}} オブジェクト を含む <code>PluginArray</code> オブジェクト</li> +</ul> + +<p>戻り値は JavaScript の配列ではありませんが、<code>length</code> プロパティを持っています。また、各要素にアクセスする方法として、<code>item(<em>index</em> )</code> 、 <code>namedItem(<em>"name"</em> )</code> メソッド経由だけでなく、<code>plugins[2]</code> のように、角括弧を使う方法もサポートしています。</p> + +<h2 id="Example" name="Example">例</h2> + +<p>以下の例は、高位の文書のためにインストールされたプラグインについての情報を出力します。注意:Plugin オブジェクトに用意されているプロパティは <code>name</code> 、<code>filename</code> 、<code>description</code> です。</p> + +<div>{{gecko_minversion_note("1.9.2", "Gecko 1.9.2 で <code>version</code> プロパティが追加されました。")}}</div> + +<pre class="brush:js">var L = navigator.plugins.length; + +document.write( + L.toString() + " Plugin(s)<br>" + + "Name | Filename | description<br>" +); + +for(var i = 0; i < L; i++) { + document.write( + navigator.plugins[i].name + + " | " + + navigator.plugins[i].filename + + " | " + + navigator.plugins[i].description + + " | " + + navigator.plugins[i].version + + "<br>" + ); +}</pre> + +<h2 id="Notes" name="Notes">注記</h2> + +<p>{{domxref("Plugin")}} オブジェクトは、ブラウザにインストールされた様々なプラグインについての情報を取得して表示する小さなインタフェースです。 プラグインの一覧は、ブラウザのアドレスバーに <code>about:plugins</code> と入力することでも閲覧可能です。</p> + +<h2 id="Specification" name="Specification">仕様</h2> + +<p>{{DOM0}}</p> |