filename property (plugin)
Returns the file name of the current plugin with extension.
Use the description property to get the description, or the name property to get the name of the plugin.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read-only.
Possible values:
String that represents the file name with extension.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the filename property:
|
||||
<head> <script type="text/javascript"> function GetPlugins () { var message = ""; // Internet Explorer supports the plugins collection, but it is always empty if (navigator.plugins && navigator.plugins.length > 0) { var plugins = navigator.plugins; for (var i=0; i < plugins.length; i++) { message += "<b>" + plugins[i].name + "</b> : " + plugins[i].filename + "<br />"; } } else { message = "Your browser does not support this example!"; } var info = document.getElementById ("info"); info.innerHTML = message; } </script> </head> <body onload="GetPlugins ()"> <div id="info" style="width:500px; height:300px; overflow:auto; background-color:#e0d0d0;"></div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
Related pages:
External links:
User Contributed Comments