var elementList = obj.FindChildrenElements("tag_name", Search conditions);
tag_name
is the HTML tag of the elements to be found.// Display all the links in the <body> HTML element.
var coreObj = new ActiveXObject("OpenTwebst.Core");
var browser = coreObj.StartBrowser("http://www.codecentrix.com/");
var textToDisplay = "";
var anchorList = browser.FindElement("body", "").FindChildrenElements("a", "");
for (i = 0; i < anchorList.length; ++i)
{
textToDisplay += anchorList(i).nativeElement.innerText + "\n";
}
WScript.Echo(textToDisplay);