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