JavaScript Tutorial/Document/Plugin
Содержание
IE Plugin
<source lang="javascript">
<html> <head> <script language="Javascript" type = "text/javascript">
</script> </head> <body> <script>
</script> </body> </html></source>
Plugin
The Plugin object is used to obtain plug-in information from the browser.
The Plugin object contains an array of elements containing the MIME types handled by each plug-in.
Property Description description Refers to a description of the plug-in filename Refers to the filename of a plug-in program length Refers to the number of MIME types supported name Refers to the plug-in name
<source lang="javascript">
<html>
<head> <title> Example of the Plugin object</title> </head> <body> <script language="JavaScript"> </script> </body> </html></source>
Plugin.description
The description property obtains a description of the browser plug-ins.
<source lang="javascript">
<html>
<head> <title> Example of the plugin description property</title> </head> <body> <script language="JavaScript"> </script> </body> </html></source>
Plugin.filename
The filename property gets the path and filename for a plug-in.
<source lang="javascript">
<html>
<head> <title> Example of the plugin filename property</title> </head> <body> <script language="JavaScript"> </script> </body> </html></source>
Plugin.length
The length property determines the number of MIME data types the plug-in can support.
<source lang="javascript">
<html>
<head> <title> Example of the plugin length property</title> </head> <body> <script language="JavaScript"> </script> </body> </html></source>
Plugin.name
The name property gets the plug-in"s name.
<source lang="javascript">
<html>
<head> <title> Example of the plugin name property</title> </head> <body> <script language="JavaScript"> </script> </body> </html></source>