using System.Text;
StringBuilder sbScript = new StringBuilder();
sbScript.Append("<script>\n");
sbScript.Append("if (confirm('是否关闭?')){\n");
sbScript.Append("window.close();\n");
sbScript.Append("}\n");
sbScript.Append("</script>");
Response.Write(sbScript.ToString());
[此贴子已经被作者于2007-9-13 14:00:55编辑过]