用js将form表单同时提交到两个不同页面的方法
2009-11-30 20:23
686 查看
用js将form表单同时提交到两个不同页面的方法:
<script type="text/javascript">
function dosubmit(){
window.open('first.php?var1='+window.form.var1.value+'&var2='+window.form.var2.value);
window.open('second.php?var1='+window.form.var1.value+'&var2='+window.form.var2.value);
return false;
}
</script>
<form name=form onsubmit="return dosubmit();">
<input type=text name=var1><br />
<input type=text name=var2>
<br /><Input type=submit value="提交">
</form>
原文地址:http://www.corange.cn/archives/2009/11/3495.html
<script type="text/javascript">
function dosubmit(){
window.open('first.php?var1='+window.form.var1.value+'&var2='+window.form.var2.value);
window.open('second.php?var1='+window.form.var1.value+'&var2='+window.form.var2.value);
return false;
}
</script>
<form name=form onsubmit="return dosubmit();">
<input type=text name=var1><br />
<input type=text name=var2>
<br /><Input type=submit value="提交">
</form>
原文地址:http://www.corange.cn/archives/2009/11/3495.html
相关文章推荐
- 用js将form表单同时提交到两个不同页面的方法
- 用js将form表单同时提交到两个不同页面的方法
- 用js将form表单同时提交到两个不同页面的方法
- 一个form表单,有两个提交按钮,分别提交到不同页面(或不同的方法中)
- js 在一个页面两个submit 提交同一个form 到不同的action
- 关于使用jquery.form.js上传文件同时提交表单的方法
- 如何让一个表单同时提交到两个不同的页面
- 一个表单同时提交到两个不同的页面
- jQuery不能同时提交两个表单到不同页面
- js 在一个页面两个submit 提交同一个form 到不同的action
- 两个按钮的提交跳转到不同页面(最简单的方法)
- 不同编码页面之间表单的提交方法
- 一个页面有多个form需要用js提交的通用方法
- 利用form的“accept-charset”在不同编码的页面间提交表单
- 将一个表单提交到不同页面的方法
- js 提交form表单和设置form表单请求路径的实现方法
- 使用jquery.form.js 进行表单提交,通过回调函数实现页面互动
- 利用form的“accept-charset”在不同编码的页面间提交表单
- 两个form表单同时提交(示例)
- 在一个form用一个SUBMIT(或button)分别提交到两个处理表单页面的代码