14. 31. 1. document.plugins |
|
Syntax |
document.plugins
document.plugins[index]
|
|
The plugins property is an array that contains all the embedded objects and plug-ins that appear within the HTML document from using the |
The plugins property length contains the number of items in the array. |
The index number ranges from zero to length - 1. |
The plugins[] array property accesses the same data as the document.embeds[] array property. |
<html>
<h2>Learn Shapes</h2>
<h2>A Circle</h2>
<embed src="circle.gif">
<h2>A Square</h2>
<embed src="square.gif">
<script language="JavaScript">
<!--
document.write(document.plugins.length," embedded objects.");
-->
</script>
</html>
|
|