This accesses nodes by their position in the linear sequence of nodes within the map. The index value is zero based so if the value specified in equal to or greater than the number of nodes in the map, a null value will be returned instead.
Note that the item() method for a NamedNodeMap is spelled with a lower case i. The MSIE Collection class also has an Item() method that provides similar (but not identical) ways of accessing items in a collection. Note that Collection.Item() is spelt with a capital I.
See also: | Collection.Item() |
Prev | Home | Next |
NamedNodeMap.getNamedItem() | Up | NamedNodeMap.length |
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. |