方法一:(推荐)
<form method="POST" name="form1">
......
<input type="button" value="del" name="B1" οnclick="document.form1.action='del.asp'; document.form1.submit()" >
<input type="button" value="view" name="B2"οnclick="document.form1.action='view.asp';document.form1.submit()">
<input type="button" value="addnew" name="B3" οnclick="document.form1.action='addnew.asp'; document.form1.submit()">
</form>
------------------------------------------------------------
方法二
<Script Language="JavaScript">
function modify()
{
document.form1.action="modify.jsp";
document.form1.submit();
}
function delete()
{
document.form1.action="delete.jsp";
document.form1.submit();
}
</Script>
<form name="form1" action="">
<INPUT Type="Button" Name="Modify" Value="修 改 " onClick="modify()">
<INPUT Type="Button" Name="Delete" Value="删 除 " onClick="delete()">
</form>
这样可以实现将多个按钮发送到不同网页中。
<form method="POST" name="form1">
......
<input type="button" value="del" name="B1" οnclick="document.form1.action='del.asp'; document.form1.submit()" >
<input type="button" value="view" name="B2"οnclick="document.form1.action='view.asp';document.form1.submit()">
<input type="button" value="addnew" name="B3" οnclick="document.form1.action='addnew.asp'; document.form1.submit()">
</form>
------------------------------------------------------------
方法二
<Script Language="JavaScript">
function modify()
{
document.form1.action="modify.jsp";
document.form1.submit();
}
function delete()
{
document.form1.action="delete.jsp";
document.form1.submit();
}
</Script>
<form name="form1" action="">
<INPUT Type="Button" Name="Modify" Value="修 改 " onClick="modify()">
<INPUT Type="Button" Name="Delete" Value="删 除 " onClick="delete()">
</form>
这样可以实现将多个按钮发送到不同网页中。