item method

Retrieves an object from the element collection by name or index.

Syntax

*object.*item(varName, varIndex)

Parameters

  • varName [in, optional]
    Type: VARIANT

    A Variant of type String or Integer that specifies the name or index of the item to retrieve. If varName is an index, then the varIndex parameter is ignored. If a value is not specified, the method returns the first element in the collection.

  • varIndex [in, optional]
    Type: VARIANT

    An Variant of type Integer that specifies an optional index to use if more than one element share the same name. If a value is not specified, this method may return a collection of elements.

Return value

Type: Object

Returns a reference to the item or collection.

Remarks

The first object in the collection is located at index position 0, and the last object in the collection is located at position length minus 1.

See also

timeAll

timeChildren

Reference

activeElements

Conceptual

Introduction to HTML+TIME