NodeList

Availability

BlackBerry Device Software version 4.6 or later

The NodeList object is an array that contains an ordered collection of nodes.

You can access an individual Node within a collection by its index position using NodeList.item() or you can index the object directly. For example, if you create an instance of a NodeList object called myNodeList, then specifying

myNodelist.item(2)

is equivalent to specifying

myNodelist[2]

Properties

Property name

Type

Description

Status

Support level

Availability

length

unsigned long

Returns the number of Node s in the list.

read only

DOM 2 Core

4.6 or later

Methods

Method name

Description

Support level

Availability

item()

Returns the Node at the specified index in the collection.

DOM 2 Core

4.6 or later

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus