var len = listObj.length;
// 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);