Home > Backend Development > PHP Tutorial > 用户点击提交表单按钮,10秒后提交,可以做到不?解决方案

用户点击提交表单按钮,10秒后提交,可以做到不?解决方案

WBOY
Release: 2016-06-13 10:03:32
Original
1116 people have browsed it

用户点击提交表单按钮,10秒后提交,可以做到不?
现在要的是:
在用户点击提交按钮后,放一段广告,然后在把表单提交到服务器端,可以做到么?

我这里试了下,只能是提交到服务器端后再打开一个10秒广告

------解决方案--------------------
用Javascript
------解决方案--------------------
setInterval("form1.onsubmit()",10000)
------解决方案--------------------
完全可以考虑用Ajax做啊!提交是在后台而前台不用有任何反映放你的广告就是了

------解决方案--------------------
setInterval("form1.onsubmit()",10000)
------解决方案--------------------
可以考虑用javascript的windows.setTimeout()来实现
------解决方案--------------------
用Javascript停10秒再提交就可以了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template