<script type="text/vbscript">
set xmlhttp=createObject("Microsoft.XMLHTTP")
xmlhttp.onreadystatechange=getRef("state_Change")
call xmlhttp.open("GET",url,true)
if xmlhttp.readyState=4 then
if xmlhttp.status=200 then
document.getElementById("A1").innerText=xmlhttp.status
document.getElementById("A2").innerText=xmlhttp.statusText
document.getElementById("A3").innerText=xmlhttp.responseText
alert("Problem retrieving XML data:" & xmlhttp.statusText)
<body onload="loadXMLDoc('/example/xmle/note.xml')">
<h2>Using the HttpRequest Object</h2>
<br /><span id="A3"></span>