JS是不允许进行跨域操作的。另外想办法吧

解决方案 »

  1.   

    能不能给点意见呢?如何另辟蹊径,请求赐教。
      

  2.   

    <input type="button" value="meizz" onclick="hehe('http://writeblog.csdn.net')" />
    <iframe name="mm" id="iframe1" width="100%" height="300px"></iframe>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function hehe(url)
    {
        var iframe = document.getElementById("iframe1");
        iframe.src = "";
        setTimeout(function()
        {
            iframe.contentWindow.document.write("<div style='height: 100%; background-color: yellow'>loading...</div>");
            iframe.contentWindow.document.close();
            iframe.src=url
        }, 10);
    }
    //-->
    </SCRIPT>