如果是關閉提交的窗口
Response.End
如果關閉本窗口
Window.Close();

解决方案 »

  1.   

    aaa.html<html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><body>
    <form name="form1" method="post" action="aaa.php">
    <table width="90%" border="1" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td><input type="submit" name="Submit" value="Submit"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>aaa.php<script language="JavaScript">
    <!--
    window.close()
    //-->
    </script>