length Property

This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.

Gets the number of objects in a collection.


[ iCollObjs = ] object.length

Possible Values

iCollObjs Integer that receives the number of objects in the collection.

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


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

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

Applies To

activeElements, playList

See Also

Introduction to HTML+TIME