length property
Gets the number of objects in a collection.
Syntax
| JScript |
|---|
p = object.length |
Property values
Type: Integer
the number of objects in the collection.
Examples
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>
See also
- activeElements
- playList
- Introduction to HTML+TIME
Show: