lengthProperty

The length of the list.

Example

The following example illustrates the use of the length property.

 

function displayChildNodes(parent)

{  

   var names = "";

   var nodeList = parent.childNodes();

  

   for (var i=0; i < nodeList.length; i++)

      names += nodeList.item(i).getName() + "\n";

 

   alert(names);

}