农民财产性收入:错误:\'activexobject\' 未定义是什么原因?

来源:百度文库 编辑:高校问答 时间:2024/05/04 19:00:05
function startit()
{
var xmlhttp=null;
xmlhttp=new activexobject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange=seeit;
xmlhttp.open("Get","abc.xml",true);
xmlhttp.send(null);
}
function seeit()
{
alert(xmlhttp.responsetext);
}
</script>
我在调用这个startit()之后出现javascript错误,说activeobject未定义,是什么原因??要如果处理呢?????

浏览器不支持 只有IE才支持