The DOMNodeList interface supports one method, item.
item(longIndex) | |
Returns | DOMNode |
Description | Returns the DOMNode object indexed by longIndex in the DOMNodeList. Valid index range from 0 to length -1. |
Usage | |
JScript | DOMNodeList_object.item(longIndex); |
VBScript | DOMNodeList_object.item(longIndex) |
Example |
// SoftQuad Script Language JSCRIPT: var mynodelist; mynodelist = ActiveDocument.getElementsByTagname("*"); // get the first node in the list using the item() method var firstNode = mynodelist.item(0); Application.Alert(firstNode.nodeName); |
Copyright © SoftQuad Software Inc. 1999