谁告诉你不能的
你把错误信息弄清楚了再发上来

解决方案 »

  1.   

    up
    我只能打开本地的<!-- saved from url=(0014)about:internet -->
    <script>
    function jb()
    {
    var A=null
    try {
    A=new ActiveXObject("Msxml2.XMLHTTP")
    }
    catch(e) {
    try {
    A=new ActiveXObject("Microsoft.XMLHTTP")
    }
    catch(oc) {
    A=null
    }
    }
    if ( !A && typeof XMLHttpRequest != "undefined" ) {
    A=new XMLHttpRequest()
    }
    return A
    }function getHtml(str)
    {
    xmlHttp = jb();
    xmlHttp.open('get',str,false);
    xmlHttp.send(null);
    return xmlHttp.responseText;
    }
    </script><input value=FF type=button onclick=alert(getHtml('file:///c:/windows/web/tip.htm'))>
    <input value=IE type=button onclick=alert(getHtml('http://www.google.com'))>