var a=window.open("","mxh")
document.formname.target="mxh"
document.formname.submit()in window-a:
opener.location.reload()
self.close()

解决方案 »

  1.   

    主窗口:
    打开新窗口:
    windows.open("url","page_name",width=400,height=400,scrollbars=yes,resizable=yes,status=no,toolbar=no,location=no,menu=no')
    将表单提交到新窗口:
    可以做一个函数:
    function new_window{
    document.formname.target="page_name";//指向提交到name为"page_name"页面
    document.formname.submit();
    history.go(0);//无条件的向服务器发出一个GET命令而获得页面刷新
    }"name"新窗口:
    在处理完代码后加上self.close();