Plugin.filename

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

							plugin.filename

Description

The filename property of the Plugin object is used to get the path and filename for a plug-in.

Example

Listing 7.427 shows an example of how the filename property is used.

Listing 7.427 Example of the filename Property
<html>
<head>
<title> Example of the plugin filename property</title>
</head>
<body>

<script language="JavaScript">
<!--Hide
// print the filename for the first browser plug-in
     document.write(navigator.plugins[0].filename);

// End Hide --->
</script>

</body>
</html>
							
							
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.