自个的模态窗口

页面js

function updateOtTime(otid){
var oturl = "<%=base %>/UpdateOtTimeAction.do" + "?otid=" + otid;
var flg = window.showModalDialog(oturl,"","dialogHeight:250px;dialogWidth:350px;center:yes;resizable:no;status:no;");

if(flg == "saveok"){
//window.location.reload(true);
window.location.href = "<%=base%>/OperateOtAction.do";
}
}

子页面中的返回

window.returnValue = "saveok";
window.close();




你可能感兴趣的:(窗口)