<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>不弹出提示框,自动关闭窗体</title>
</head>
<body>
<a href="#" onclick="window.opener=null;window.open('','_self');window.close();">关闭窗体 </a>
//框架页关闭:
<input type="button" value="Close" onclick="javascript:top.close();">
</body>
</html>
<script type="text/javascript">
//关闭父窗体
function WindowClose()
{
parent.window.opener=null;
parent.window.open('','_self');
parent.window.close();
}
</script>
window.open 打开窗体
string openpage = "test.aspx?id=" + hidID.Value;
string strScript = "";
strScript += "<script language='javascript'>";
strScript += "window.open('" + openpage + "','view','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,top=260,left=300,width=750,height=450');";
strScript += "</script>";
Response.Write(strScript);