1 //关闭时提示“是否关闭” 2 Response.Write("<script language:javascript>javascript:window.close();</script>");3 4 //直接关闭不提示 5 //Response.Write("<script language:javascript>javascript:window.opener=null;window.close();</script>");