function doModal(url){
win=window.showModalDialog(url,0,"dialogWidth:500px;dialogHeight:500px;status:no;help:no;");
document.location.reload();
}
win=window.showModalDialog(url,0,"dialogWidth:500px;dialogHeight:500px;status:no;help:no;");
document.location.reload();
}
当我要关闭模式窗口page2.jsp时,关闭的同时,怎么自动对page1.jsp进行刷
新?
showModalDialog()将中断主窗口的运行直到自己被关闭。
所以document.location.reload();在showModalDialog关闭后才执行
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";
}
if (win=="T")
{
document.location.reload(true);
}