function doModal(url){
win=window.showModalDialog(url,0,"dialogWidth:500px;dialogHeight:500px;status:no;help:no;");
document.location.reload();
}

解决方案 »

  1.   

    document.location.reload();是指模式窗口吧。我是:page1.jsp用showModalDialog()弹出一个模式窗口page2.jsp(是一个frame),
    当我要关闭模式窗口page2.jsp时,关闭的同时,怎么自动对page1.jsp进行刷
    新?
      

  2.   

    quary() 的就是
    showModalDialog()将中断主窗口的运行直到自己被关闭。
    所以document.location.reload();在showModalDialog关闭后才执行
      

  3.   

    在父窗口
    function doModal(url){
    win=window.showModalDialog(url,0,"dialogWidth:500
    px;dialogHeight:500px;status:no;help:no;");
    if (win=="t")
     {
     document.location.reload(ture); 
     }
    }
    在模式窗口 
    window.onunload()
    {
    window.returnValue="T";
    }
      

  4.   

    写错了
    if (win=="T")
     {
       document.location.reload(true);
      }