Plugin.description - 詳細
descriptionは、Pluginのプロパティです。プラグインの詳細を返します。
概要
- 名前
- description
- 所属
- Plugin
- IDL
readonly attribute DOMString description;
- 仕様書
- https://html.spec.whatwg.org/multipage/system-state.html#dom-plugin-description
説明
プラグインの詳細を表す文字列を返す。
デモ
Plugin.descriptionのデモです。
<!-- このコードは編集できます。 -->
<!DOCTYPE html>
<html>
<head>
<style>
div#result {
white-space: pre-wrap ;
}
</style>
</head>
<body>
<div id="result"></div>
<script>
var resultElement = document.getElementById( "result" ) ;
var pluginArray = navigator.plugins ;
resultElement.textContent = pluginArray + "\n\n" ;
for( var i=0,l=pluginArray.length; l>i; i++ ) {
var plugin = pluginArray[i] ;
console.log( plugin ) ;
resultElement.textContent += "[" + i + "]" + plugin + "\n" ;
resultElement.textContent += "\t" + "name: " + plugin.name + "\n" ;
resultElement.textContent += "\t" + "filename: " + plugin.filename + "\n" ;
resultElement.textContent += "\t" + "description: " + plugin.description + "\n" ;
resultElement.textContent += "\t" + "length: " + plugin.length + "\n\n" ;
}
</script>
</body>
</html>
サポート状況
Chrome | Firefox | Safari | Edge | IE | Opera | iOS Safari | Android |
---|---|---|---|---|---|---|---|
● | ● | ● | ● | ● 11+ | ● | ● | × |
関連記事
- PluginArray.length
- lengthは、PluginArrayのプロパティです。ブラウザにインストールされているプラグインの個数を返します。
- PluginArray.item()
- item()は、PluginArrayのメソッドです。インデックス番号を指定して、プラグインを取得します。
- IDLリファレンス
- WHATWGやW3Cで定義されているDOMなどのWeb APIの仕様を、サンプルコードやデモ付きでまとめています。
- Plugin.name
- nameは、Pluginのプロパティです。プラグインの名前を返します。