如何将 一个表单 提交到两个 地址? 请高手 明示

如何将 一个表单 提交到两个 地址? 请高手 明示
如何将 一个表单 提交到两个 地址? 请高手 明示
如何将 一个表单 提交到两个 地址? 请高手 明示
---------------------------------------------------------------

 1<body>
 2<form method="GET" name="f">
 3<input name="q" value="csdn"/>
 4</form>
 5<button onclick="test()">test</button>
 6<script language="JavaScript">   
 7<!--   
 8function test(){   
 9with (document.f){   
10target="_blank";   
11action="http://www.csdn.net";   
12submit();   
13target="_self"   
14action="http://www.google.com/search";   
15submit();   
16}   
17}   
18//-->   
19</script>
20</body>
 1<body>
 2<form method="GET" name="f">
 3<input name="q" value="csdn"/>
 4</form>
 5<button onclick="test()">test</button>
 6<script language="JavaScript">   
 7<!--   
 8function test(){   
 9with (document.f){   
10target="_blank";   
11action="http://www.csdn.net";   
12submit();   
13target="_self"   
14action="http://www.google.com/search";   
15submit();   
16}   
17}   
18//-->   
19</script>
20</body>

---------------------------------------------------------------

1<form name="form1" onsubmit="meizz()">   
2...   
3</form>
 1<script language="javascript">   
 2function meizz()   
 3{   
 4var e = document.form1;   
 5e.action = "a.asp";   
 6e.target = "target1"; //指定target 值是防止都提交到一个网页里发生冲突   
 7e.submit();   
 8  
 9e.action = "b.asp";   
10e.target = "target2";   
11e.submit();   
12}   
13</script>

---------------------------------------------------------------

 1<script>   
 2function actiontwo(oForm)   
 3{   
 4oForm.action = "1.asp";   
 5oForm.target = "_blank";   
 6oForm.submit();   
 7oForm.action = "2.asp";   
 8oForm.submit();   
 9}   
10</script>
1<form onsubmit="actiontwo(this)"></form>
Published At
Categories with Web编程
comments powered by Disqus