var obj = objList.item(index);
index
is the zero based ordinal position of the object to be retrieved from the list of HTML elements/frames or browsers.// Displays all anchors in a web page.
var coreObj = new ActiveXObject("OpenTwebst.Core");
var browser = coreObj.StartBrowser("http://www.codecentrix.com/");
var anchors = browser.FindAllElements("a", "");
var text = "";
for (var i = 0; i < anchors.length; ++i)
{
text += anchors.item(i).uiName;
text += "\n";
}
WScript.Echo(text);