dourong4031 2012-11-30 13:09
浏览 45
已采纳

执行时自动关闭php页面

When I Click on a link it Redirects me to a php page whose main objective is to save data into MySQL but nothing more than that. So I want this page to close by itself once it is done saving the data in to the database. How can I do that ? any pointers would be great.

  • 写回答

4条回答 默认 最新

  • douzhao5656 2012-11-30 13:17
    关注

    put this Code at the end of your page. When this script is executed your tab will be closed.

    <script type="text/javascript">
    window.close();
    </script>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?