在add.asp的按钮中,onClick=window.close();

解决方案 »

  1.   

    可以.
    确定按钮指向一个这样的页面
    <html><head>
    <meta http-equiv="refresh" content="3;url=index.asp">
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><body>
    <table border="0" width="450" align=center>
      <tr>
        <td width="100%"><b>数据成功保存,系统将三秒钟返回**页面。</b></td>
      </tr>
      </tr>
    </table>
    </body></html>
      

  2.   

    add.asp
    <form name=form action=save.asp>
    </form>save.asp
    <%rs.addnew
    rs.update%>
    <script>
    window.opener=null;
    window.close();
    </script>
      

  3.   

    <script>
    alert("保存成功");
    window.close();
    </script>
      

  4.   

    <script>
    window.opener=null;
    window.close();
    </script>
    这个在非window.open的情况下需要>IE5.5版本才行得通!
      

  5.   

    如果是用asp,建议用RDS吧,这样对记录的操作很好的。
      

  6.   

    <script language='javascript'>
    function go()
    {
    form1.submit();
    windows.close();
    }
    ....
    <form name=form1>
    <input type="submit" name="button1" onclick=go()>
    </form>