document.plugins : plugins : Document JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Document » plugins »

 

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 tag.

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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Document
» plugins