新的 MsXML 4.20 里面不再能用 iXMLHTTP 来获取其他网站的代码?
在 A.htm 里面这么写:
var oXMLHttp = null;
oXMLHttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");
oXMLHttp.Open("GET", "http://B/index.asp" ,false);
oXMLHttp.Send();
oTest.innerText = oXMLHttp.responseText;
alert(oXMLHttp.responseText);
IE6提示第4行第2个字符有错误:Permission denied
为什么会这样啊?
如果我要实现获取应该怎么做?
请高手指点