<input name=mytext>
<input type=button onclick='window.open("new3.htm","","")'>
new3.htm
<input name=mytext>
<input type=button onclick="opener.document.all.mytext.value=document.all.mytext.value;window.close()">

解决方案 »

  1.   

    -- test.htm --
    <html>
    <frameset cols="0,*" frameborder="NO" border="0" framespacing="0">
    <frame scrolling="NO" noresize>
    <frame src="youasp.asp" name="mypage">
    </frameset>
    </html>-- youasp.asp ---
    <input type=button onclick='window.open("new.htm","","")' value="打开新页">--new.htm--
    <form name=form1 method=post action="youasp.asp" target="mypage">
    <input name=mytext>
    <input type=button onclick="form.submit();window.close()">
    </form>
      

  2.   

    注意:
    <frame src="youasp.asp" name="mypage">
    <form name=form1 method=post action="youasp.asp" target="mypage">中的"mypage"一定要相同的名字。
      

  3.   

    主窗口:main.htm
    新窗口:a.htm===================================================================
    main.htm<input type="button" OnClick="window.open('a.htm');" value="打开新窗口" />
    <br /><br />
    这里是从新窗口得到的ID值:<span id="span1" ></span><br>
    ======================================================================================================================================
    a.htm
    <script>
    function go()
    {
    opener.document.all.span1.innerHTML = "<font color=red size=5><b>" + document.all.form.id.value + "</b></font>";
    self.close();
    }
    </script>
    <form id="form" >
    <input id="id">
    <input type="button" onClick = "go();" value="提交信息" />
    </form>
    ====================================================================试试就知道了
    :)