From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/navigatorplugins/index.html | 107 +++++++++++++++++++++ .../api/navigatorplugins/javaenabled/index.html | 35 +++++++ .../web/api/navigatorplugins/mimetypes/index.html | 33 +++++++ .../ja/web/api/navigatorplugins/plugins/index.html | 59 ++++++++++++ 4 files changed, 234 insertions(+) create mode 100644 files/ja/web/api/navigatorplugins/index.html create mode 100644 files/ja/web/api/navigatorplugins/javaenabled/index.html create mode 100644 files/ja/web/api/navigatorplugins/mimetypes/index.html create mode 100644 files/ja/web/api/navigatorplugins/plugins/index.html (limited to 'files/ja/web/api/navigatorplugins') 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 +--- +

{{APIRef("HTML DOM")}}{{SeeCompatTable}}

+ +

The NavigatorPlugins interface contains methods and properties related to the plugins installed in the browser.

+ +

There is no object of type NavigatorPlugins, but other interfaces, like {{domxref("Navigator")}}, implement it.

+ +

Properties

+ +
+
{{domxref("NavigatorPlugins.mimeTypes")}} {{readonlyInline}}{{experimental_inline}}
+
Returns an {{domxref("MimeTypeArray")}} listing the MIME types supported by the browser.
+
{{domxref("NavigatorPlugins.plugins")}} {{readonlyInline}}{{experimental_inline}}
+
Returns a {{domxref("PluginArray")}} listing the plugins installed in the browser.
+
+ +

Methods

+ +

The NavigatorPlugins interface doesn't inherit any method.

+ +
+
{{domxref("NavigatorPlugins.javaEnabled")}} {{readonlyInline}}{{experimental_inline}}
+
Returns a {{domxref("Boolean")}} flag indicating whether the host browser is Java-enabled or not.
+
+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', '#navigatorplugins', 'NavigatorPlugins')}}{{Spec2('HTML WHATWG')}}Initial definition.
+ +

Browser compatibility

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +

See also

+ + 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 +--- +

 

+


+ {{ ApiRef() }} {{ 英語版章題("Summary") }}

+

概要

+

このメソッドは、現在のブラウザで Java が有効かどうかを示します。

+

{{ 英語版章題("Syntax") }}

+

構文

+
result = window.navigator.javaEnabled()
+
+

{{ 英語版章題("Example") }}

+

+
if (window.navigator.javaEnabled()) {
+   // ブラウザで Java は有効です。
+}
+
+

{{ 英語版章題("Notes") }}

+

注記

+

このメソッドの戻り値は、一般的に、ブラウザが Java サポートを提供しているかどうかに関わらず、Java をコントロールする設定が有効か無効かを示します。

+

{{ 英語版章題("Specification") }}

+

仕様

+

{{ DOM0() }}

+

 

+
+  
+

{{ languages( { "en": "en/DOM/window.navigator.javaEnabled", "pl": "pl/DOM/window.navigator.javaEnabled" } ) }}

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 +--- +

 

+

{{ ApiRef() }} {{ 英語版章題("Summary") }}

+

概要

+

MimeTypeArray オブジェクトを返します。このオブジェクトは、ブラウザが認識する MIME タイプを表す MimeType オブジェクトのリストを含んでいます。

+

{{ 英語版章題("Syntax") }}

+

構文

+
mimeTypes = navigator.mimeTypes;
+
+

mimeTypes は、MimeTypeArray オブジェクトです。このオブジェクトは、length プロパティを持ち、また、item(index) 及び namedItem(name) メソッドを持っています。

+

{{ 英語版章題("Example") }}

+

+
  alert(window.navigator.mimeTypes.item(0).description); // "Mozilla Default Plug-in" などをダイアログで表示します。
+
+

{{ 英語版章題("Notes") }}

+

注記

+

例における mimeTypes プロパティの 0 番目の要素("Mozilla Default Plug-in" MimeType オブジェクト)の type プロパティの値は、"image/x-macpaint" のような 典型的な MIME 形式ではなく、* という値 です。

+

{{ 英語版章題("Specification") }}

+

仕様

+

{{ DOM0() }}

+

 

+
+  
+

{{ languages( { "en": "en/DOM/window.navigator.mimeTypes", "pl": "pl/DOM/window.navigator.mimeTypes" } ) }}

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 +--- +
{{ApiRef}} {{non-standard_header}}
+ +

概要

+ +

アプリケーションにインストールされたプラグインをリスト化した、{{domxref("PluginArray")}} オブジェクトを返します。

+ +

構文

+ +
plugins = navigator.plugins;
+
+ + + +

戻り値は JavaScript の配列ではありませんが、length プロパティを持っています。また、各要素にアクセスする方法として、item(index )namedItem("name" ) メソッド経由だけでなく、plugins[2] のように、角括弧を使う方法もサポートしています。

+ +

+ +

以下の例は、高位の文書のためにインストールされたプラグインについての情報を出力します。注意:Plugin オブジェクトに用意されているプロパティは namefilenamedescription です。

+ +
{{gecko_minversion_note("1.9.2", "Gecko 1.9.2 で version プロパティが追加されました。")}}
+ +
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>"
+  );
+}
+ +

注記

+ +

{{domxref("Plugin")}} オブジェクトは、ブラウザにインストールされた様々なプラグインについての情報を取得して表示する小さなインタフェースです。 プラグインの一覧は、ブラウザのアドレスバーに about:plugins と入力することでも閲覧可能です。

+ +

仕様

+ +

{{DOM0}}

-- cgit v1.2.3-54-g00ecf