时间:2021-07-01 10:21:17 帮助过:3人阅读
Response.Write("<script language='javascript'> ");
Response.Write("var w;if(window.dialogArguments != null) w = window.dialogArguments;");
Response.Write("window.returnValue=1;window.close();");
Response.Write("</script>");
在第N-1层模态窗口内控制模态窗口的弹出并确认是否需要刷新该页面
代码
代码如下:
<script type="text/javascript">
function OpenShowDialog(id) {
var isReflesh = window.showModalDialog('Test.aspx?id=' + id, window, 'dialogWidth=670px;dialogHeight=250px;status:no;directories:yes;scrollbar:no;Resizable:no');
if (isReflesh == 1) {
window.name = "__self";
window.open(window.location.href, "__self")
}
}
</script>