表单提交后刷新或关闭 [英] Refresh or close after form submission
本文介绍了表单提交后刷新或关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个页面,我希望在用户提交表单后刷新。我还有另一个页面,我想在用户提交表单后关闭。
如何做到这一点?
I have a page that I want to be refreshed after a user submits a form. I also have another page that I want to be closed after a user submits a form.
How would I go about doing this??
推荐答案
你能解释一下吗?关闭页面是什么意思 - 你的意思是关闭一个显示页面的窗口?当你提交当时发生的事情时 - 你会调用你控制的php脚本吗?
亲切的问候
could you explain that a bit more? what do you mean with closing a page - do you mean closing a window that displays a page? when you submit what happens then - do you call a php script that you control?
kind regards
我有一个弹出窗体''用于提交评论。当用户单击提交按钮时,我希望在提交后关闭弹出窗口。
I have a popup form that''s used to submit comments. When the user clicks the submit button, I''d like the popup window to close once the submission takes place.
只需调用使用window.close的表单的js-function onsubmit ()
亲切的问候
just call a js-function onsubmit of your form that uses window.close()
kind regards
这篇关于表单提交后刷新或关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文