安全策略不允许除非得到许可如http://www.web.com
---------------
document.domain = "yourdomain.com"
...
http://www.yourdomain.com
-----------------------------
<iframe name="mydomainpage" src="test.htm">
<iframe>
<iframe name="otherdomain" src="http://www.web.com">
<iframe>
test.htm
--------------
parent.otherdomain.document.body.....

解决方案 »

  1.   

    use xmlhttp:
    4.htm
    <html>
    <head></head>
    <body >
    <iframe name=frm src="4.asp"></iframe><INPUT type="button" value="Button" id=button1 name=button1 onclick="test()">
    <SCRIPT LANGUAGE=javascript>
    <!--
    function test(){
    alert(frm.document.all.name.value)
    }
    //-->
    </SCRIPT>
    </body>
    </html>
    4.asp
    <%
    dim xmlhttp
    set xmlhttp=server.CreateObject("Microsoft.XMLHTTP")
    xmlhttp.open "get","http://www.csdn.net",false
    xmlhttp.sendResponse.Write xmlhttp.responseText
    %>
      

  2.   

    不过在4.htm的<iframe name=frm src="4.asp"></iframe>里面看到的是乱码!
      

  3.   

    中文乱码问题,可以参考:http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=1842