Collection.tags() (Method)

Extract a sub-list of Element objects of a particular tag type.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Collection object
JavaScript syntax:IEmyCollection.tags(aTagName)
Argument list:aTagNameThe name of a tag to be filtered

The collection is traversed and all objects are examined to see if they were created by an HTML tag that is the same as that specified in the argument.

The argument must always be specified in upper case and the resulting collection will contain all objects of that type selected from the receiving collection object.

You can then manipulate the sub-set collection in the normal way, accessing items within it by index or by other means.

See also:Collection object, Select.tags()