DOMNamedNodeMap properties

The DOMNamedNodeMap interface supports one property, length.

length 
Access  Read-only 
Type  Long 
Description  The number of DOMNodes in the DOMNamedNodeMap
Usage 
JScript  DOMNamedNodeMap_object.length;  
VBScript  DOMNamedNodeMap_object.length 
Example 
// SoftQuad Script Language JSCRIPT:
var mynodelist;
// get the node list
mynodelist = ActiveDocument.getElementsByTagname("*"); 
// get one of the nodes in the list
var aNode = mynodelist.item(1);  
// obtain a NamedNodeMap from the attributes property.  
// This creates a NamedNodeMap based upon the attributes 
// of the element (Node).
Application.Alert(aNode.attributes.length);
 


Right arrow
Next Topic
Left arrow
Previous Topic
Table of contents
Table of Contents

Copyright © SoftQuad Software Inc. 1999