responseText
responseXML
getElementById
getElementsByTagNames
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4) { if (xmlhttp.status == 200) { var xmldom = xmlhttp.responseXML; if (xmldom.parsed) { var imgs = xmldom.getElementsByTagName('img'); WScript.Echo("imgs: " + imgs + " " + imgs.length); } } } } xmlhttp.open("GET", "http://www.example.com/somepage.php", false); xmlhttp.send();
imgs: 0
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)