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.
执行时自动关闭php页面
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
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>本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报