我的ie6居然创建不了xmlhttp对象,怎么办啊?
ot310 2004-12-19 08:22:02 整个文件内容如下:
<script language="javascript">
function GetServerDate()
{
var myXmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); myXmlHttp.open("POST","test.php",false);
myXmlHttp.send();
alert(myXmlHttp.responseText);
}
}
</script>
<input type="button" onclick="GetServerDate();">
老是提示16行错误,我发现var myXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");根据就有错!