在父窗口中使用:
var returnValue = showModalDialog('"+url+"',window,'dialogHeight:300px; dialogWidth:230px; center:1;resizable:0;scroll:0;status:0;');
if(returnValue){location.reload();}在子窗口中使用:
window.returnValue=true;
window.close();
var returnValue = showModalDialog('"+url+"',window,'dialogHeight:300px; dialogWidth:230px; center:1;resizable:0;scroll:0;status:0;');
if(returnValue){location.reload();}在子窗口中使用:
window.returnValue=true;
window.close();
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";
}
window.close();