在新window中使用opener可以访问你的iframe,以后怎么做的就不用我说了吧:)

解决方案 »

  1.   

    你可以在iframe页面中设置某个变量如var theParam;
    然后在new window 中,使用opener.theParam=你的选择值
    或者直接将返回值捆绑到ifram的document.body中,opener.document.body.theParam=returnValue;这样你就可以取得USER 选择,在相应处理了:)
      

  2.   

    如果浏览器只考虑ie4以上,可以使用window.showModalDialog 方法
      

  3.   

    假如在IFRAME中有一个TEXT,他的ID为Q你可以window.opener.document.all('q').value = "text";
      

  4.   

    老兄,能不能说明白点
    我这里有个,怎么就用不了那
    <script language="javascript">
    function SelectData()
    {
      gourl="win.htm"
    window.open(gourl,"calendar","width=200 height=200 resize=no scrollbars=no");}
    </script>
    <body><form method="POST" name="TestForm" action="">
     <input type="text" name="Edit1" size="20"><input type="button" value="按钮" name="B1" onclick="SelectData()"><input type="reset" value="全部重写" name="B2"></p>
    </form><script language="javascript">
    function SelectOver()
    {
    window.opener.document.TestForm.Edit1.value= "mama";
    close();
    }
    </script>
    <form method="POST" action="--WEBBOT-SELF--">input type="button" value="按钮" name="B1" onclick="SelectOver()">
    </form>