This is a technique that only works in MSIE. The tags() method is used on all manner of collections.
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.tags() |
Prev | Home | Next |
Select.size | Up | Select.type |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |