window.returnValue=getopenwin.value;//当然这是举例,getopenwin是你新开的窗口的获取到的值,这样可以传递到下页
  window.close();

解决方案 »

  1.   

    加上<base target="_self">
    IE6.0上通过,
      

  2.   

    在你的showModalDialog中作这样的提交按钮
    <INPUT class=button onclick="window.returnValue = 要传递的表单的值;window.close();" type=button value=确 定>
      

  3.   

    楼上各位说的是行不通的..
    对话框不允许以任何方式改变当前页的url
      

  4.   

    to  yonghengdizhen(卖CSDN门票的小贩) 可以啊
    IE5.5+
    =======================================
    <iframe name="test" width="0" height="0"></iframe>
    <form name="form1" method="post" action="safasf.asp" target="test">
      <input type="text" name="textfield">
      <input type="submit" name="Submit" value="Submit">
    </form>
      

  5.   

    to awaysrain(绝对零度) 
    你可以实际运行一下你的代码试试看.我的是ie6,目前为止还没有运行成功过
      

  6.   

    可以的,你把action改成http://www.csdn.net提交后有弹出窗口就说明提交成功了
      

  7.   

    我的方法虽然看上去比较麻烦,但可以解决你的问题。
    ret = window.showModalDialog("dialogctr.do","myApp.do?param1=123&param2=456","dialogWidth:500px;dialogHeight:400px");dialogctr.do是个简单到家的action,里面的内容是forward到一个指定的框架jsp
    jsp内容:
    <HTML>
    <META http-equiv="Content-type" content="text/html;charset=gb2312"><SCRIPT language="javascript">
    <!--
        function funLoad()
        {
    var oFormObj = window.dialogArguments;
    dialog.location.href = oFormObj; }
    // -->
    </SCRIPT>
    <FRAMESET border="2" framespacing="1" frameborder="1" onLoad="funLoad()" cols="*">
    <FRAME src="" name="dialog" scrolling="auto" marginwidth="10" target="dialog">
    <NOFRAMES>
    <BODY>
    <P>不支持frame<P>
    </BODY>
    </NOFRAMES>
    </sFRAME>
    </FRAMESET>
    </HTML>至于为什么要加一个框架action,这样可以解决调用时的路径变化问题,不用也可以,直接换成frame页面就是了。
    myApp.do的写法和别的do没什么不一样,里面的jsp也不需要特殊处理。
      

  8.   

    http://www.csdn.net/develop/article/15/15113.shtm