<script type="text/javascript">
var P = window.parent, D = P.loadinndlg();
function closCncel()
{
alert("执行了?");
P.cancel();
}
</script>
var P = window.parent, D = P.loadinndlg();
function closCncel()
{
alert("执行了?");
P.cancel();
}
</script>
-------------- cs端:-----------------------------
在执行事务的任一过程时,即可注册该js事件的方法名,即可触发js方法,如下。
protected void Button1_Click(object sender, EventArgs e)
{
//Response.Write("<script language=javascript>window.opener=null;window.close();</script>");
ClientScript.RegisterClientScriptBlock(this.GetType(), "hwj383", " closCncel();", true);
}
{
//Response.Write("<script language=javascript>window.opener=null;window.close();</script>");
ClientScript.RegisterClientScriptBlock(this.GetType(), "hwj383", " closCncel();", true);
}