现在我有一个主窗体 , 我打开了一个模态窗体1,   然后通过模态窗体1打开了一个模态窗体2,我在模态窗体1中打开模态窗体2的代码为:
showmodaldialog('mo2.html',window);
window.location = window.location ;
当模态窗体2关闭时模态窗体1刷新了。
但是是刷新在一个新页面里的, 原来的 模态窗体1 还是在。
请问怎么解决啊 !!!

解决方案 »

  1.   

    window.location = window.location ;
    不明白为什么要这1句,感觉是多于的导致刷新问题的.window.showModalDialog('mo2.html','');
    这样不就能直接打开模态窗体码?
      

  2.   

    showmodaldialog('mo2.html',[window]);在模态窗口2中
     window.close();//关闭模态框2
    dialogArguments[0].location = dialogArguments[0].location;//刷新模态框1
      

  3.   


    window.close();//
    关闭了
    dialogArguments[0].location = dialogArguments[0].location;//刷新模态框1 还执行么?
      

  4.   

    window.location = window.location ;
    是为了在模态 2 关闭后 刷新 模态1 
      

  5.   

    你测试下就知道他能不能执行了咯。你这个应该是模态窗口刷新的问题
    1:
      var s = window.showModalDialog("test2.html", [window]);
                if (s == "true") {
                    window.name = "__self";
                    window.open(window.location.href, "__self") 
                }
    2:
    window.returnValue = "true";