<input id=mxh value="father win">new.htm
<script>
alert(opener.document.all.mxh.value)
父调用子窗口
childwinobjName.document.all.ids.属性

解决方案 »

  1.   

    例子:
    fa.htm
    ========
    <HTML>
    <body>
    <script>
    var childwin=window.open("ch.htm")
    </script>
    <p id=mxh>父窗口测试 </p>
    <input value=子窗口的内容 type=button onclick="alert(childwin.document.all.mxh.innerText)">
    </HTML>ch.htm
    =========
    <HTML>
    <p id=mxh>子窗口测试 </p>
    <input value=父窗口的内容 type=button onclick="alert(window.opener.document.all.mxh.innerText)">
    </HTML>
      

  2.   

    能告诉我child是如何引用父窗口的对象的?
    是通过窗口的属性opener吗?
      

  3.   

    parent.frames(targname).formname.text.value