end
src
src
URL
Expand Minimize

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.

Syntax

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

Example

This example uses the length property to get 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>

Applies To

activeElements, playList

See Also

Introduction to HTML+TIME

Community Additions

ADD
Show:
© 2014 Microsoft