<html xmlns="http://www.w3.org/1999/xhtml">
<head >
    <title>页面标题</title>

    <script language="javascript" type="text/javascript">

function guanbi()
    {
        document.getElementById("buanbi").click();
    }

    </script>

</head>
<body class="body" onunload="guanbi()">

<input />

</body>

</html>

 

后台CS代码

    protected void Button1_ServerClick(object sender, EventArgs e)
    {
        执行相关的操作
        //Response.Write("<script>window.parent.opener=null;window.parent.close();</script>");
        //Response.Write("<script>window.location.href='default.aspx';</script>");
        JScript.ExecuteClientScript("window.close();", this.Page);
    }

 

相关文章:

  • 2022-01-02
  • 2021-07-20
  • 2021-12-05
  • 2022-12-23
  • 2021-07-02
  • 2022-01-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-10-07
相关资源
相似解决方案