aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/navigatorplugins/plugins
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/navigatorplugins/plugins
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/navigatorplugins/plugins')
-rw-r--r--files/ja/web/api/navigatorplugins/plugins/index.html59
1 files changed, 59 insertions, 0 deletions
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)&lt;br&gt;" +
+ "Name | Filename | description&lt;br&gt;"
+);
+
+for(var i = 0; i &lt; L; i++) {
+ document.write(
+ navigator.plugins[i].name +
+ " | " +
+ navigator.plugins[i].filename +
+ " | " +
+ navigator.plugins[i].description +
+ " | " +
+ navigator.plugins[i].version +
+ "&lt;br&gt;"
+ );
+}</pre>
+
+<h2 id="Notes" name="Notes">注記</h2>
+
+<p>{{domxref("Plugin")}} オブジェクトは、ブラウザにインストールされた様々なプラグインについての情報を取得して表示する小さなインタフェースです。 プラグインの一覧は、ブラウザのアドレスバーに <code>about:plugins</code> と入力することでも閲覧可能です。</p>
+
+<h2 id="Specification" name="Specification">仕様</h2>
+
+<p>{{DOM0}}</p>