在父窗口中使用:
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();