Chapter 3 DynaScript Predefined Objects


DOMNodeList property

The DOMNodeList object has this property:

length property

Syntax

DOMNodeList.length

Description

The number of objects in the list.

Example

This fragment loops through the items of a DOMNodeList of elements.

for( iElem=0; 
iElem < domParent.childNodes.length;
iElem++ ) {
thisChild = domParent.childNodes.item( iElem );
// other operations here
}

 


Copyright © 1999 Sybase, Inc. All rights reserved.