window.opener.fname.txtname.value= document.thisformname.textname.value

解决方案 »

  1.   

    Sorry:
    window.opener.document.fname.txtname.value= document.thisformname.textname.value
      

  2.   

    <form name=f>
    <input name=txt>
    </form>
    <script>
    window.open("2.htm")
    </script>
    2.htm
    ============
    <form name=f2>
    <input value=test name=txt2>
    <input type=button onclick="window.opener.document.f1.txt.value=document.f2.txt2.value" value="send to  parent">
    </form>
      

  3.   

    <form name=f>
    <input name=txt>
    </form>
    <script>
    window.open("2.htm")
    </script>
    2.htm
    ============<form name=f2>
    <input value=test name=txt2>
    <input type=button onclick="window.opener.document.f.txt.value=document.f2.txt2.value" value="send to  parent">
    </form>
      

  4.   

    注意:必须上window.open打开的。
    看看你有没有写错的地方
      

  5.   

    是母窗口事件触发函数,函数中用window.open,怎么试都不行:(