document.embeds : embeds : Document JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Document » embeds »

 

document.embeds












Syntax








document.embeds
    document.embeds[index]



The embeds property is an array that contains all the embedded objects and plug-ins that appear within the HTML document from using the tag.

The embeds property has one property, called length, which contains the number of items in the array.

The index number ranges from zero to length - 1.

The embeds array property accesses the same data as the document.plugins array property.












<html>
    <h2>A Circle</h2>
    <embed src="circle.gif">
    <h2>A Square</h2>
    <embed src="square.gif">
    <script language="JavaScript">
    <!--
    document.write(document.embeds.length," embedded objects.");
    -->
    </script>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Document
» embeds