<
html
>
<
head
>
<
script
>
function submitit1()
//交由程序1处理
{
document.
form1
.action = "http://www.baidu.com/"
document.
form1
.submit();
}
function submitit2()
//交由程序2处理
{
document.
form1
.action = "http://www.taobao.com/"
document.
form1
.submit();
}
</
script
>
</
head
>
<
body
>
<
form
name
=
"form1"
METHOD
="
POST"
>
username:<
input
type
=
text
name
=
text1
>
password:<
input
type
=
password
name
=
text2
>
<
input
type
=
button
value
=
"Submit1"
onClick
=
submitit1
();>
<
input
type
=
button
value
=
"Submit2"
onClick
=
submitit2
();>
</
form
>
</
body
>
</
html
>
时间: 2024-10-18 14:17:18