length Property (activeElements, timeAll, timeChildren, ...)

HTML (DHTML)

length Property

Internet Development Index

Retrieves the number of objects in a collection.

Syntax

[ iCollObjs = ] object.length

Possible Values

iCollObjsInteger that receives the number of objects in the collection.

The property is read-only. The property has no default value.

Example

This example uses the length property to retrieve the number of objects in a collection.

<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
<SCRIPT>
function getLength(){
alert('Number of objects: ' + m1.playList.length);
}
</SCRIPT>
<BODY>
<t:media id="m1" begin="0;" src="/test/someCollection.asx"/>
<BUTTON onclick="getLength();">Get number of objects</BUTTON>
</BODY>
</HTML>

Standards Information

This property is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) Non-Microsoft link.

Applies To

activeElements, timeAll, timeChildren, playList

See Also

Introduction to HTML+TIME