110,502
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
window.onbeforeunload = function()
{
window.returnValue = true;
}
</script>
<script>
function window.onbeforeunload(){
window.returnValue = true;
}
}
</script>
string script = @"<script language=javascript>
window.returnValue = true;
window.close();
</script>";
Page.RegisterStartupScript("Refresh", script);
var returnValue = window.showModalDialog("Add.aspx?ID=" + FunNelID + "&Rnd=" + (Math.random() * 100), "", "dialogWidth:400px; dialogHeight:300px; location=no; center:yes;help:no;resizable:yes;status:no;scroll:auto;");
if (returnValue) {
//刷新
}
Response.Write("<script>window.opener.location.href=window.opener.location.href</script>");
Response.Write("<script>window.opener=null;window.close()</script>");