一个form里有一个table,有两个按纽,如何提交到两个不同的action

这个时候需要用javascript来进行提交

<script language="JavaScript">
<!--

function doAdd() {
    a123.action = "init";
    a123.submit();
}

function doView(operID) {
   a123.action = "view";
    a123.submit();
}



-->
</script>
<form name="a123">
<input type=button onclick="doAdd()">
<input type=button nclick="doView()">
</form>

posted @ 2012-06-26 12:56  石沉溪涧  阅读(1824)  评论(0编辑  收藏  举报