弹出新页面,操作后自己关闭并使父窗体跳转到相应界面

string Url=null;
Url = Request.ApplicationPath+"/CheckList/FireCheckList.aspx?State=1";
Response.Write("<script language='javascript'>window.opener.Form1.submit();</script>");
Response.Write("<script language='javascript'>window.opener.location.href='"+Url+"';</script>") ;
Response.Write("<script language='javascript'>window.opener=null;window.close();</script>");

 

<script language="javascript" type="text/javascript">
function birthdayAlert()
{
var tmp=window.showModalDialog("birthdayComingData.aspx?sTitle=近日的生日提醒","","dialogWidth=490px;dialogHeight=350px;center=yes;help=no;status=no");

}
</script>
<html>
<input type="button" class="button" value="跳转" onclick="javascript:birthdayAlert()"/>

你可能感兴趣的:(跳转)