网页制作:一个form中使两个按钮不同的action
2009-02-19 17:33
<form name="myForm" method="post">
<input type="text">
<input type="button" value="b1" οnclick="JAVAScript:func_sub('b1.ASP')">
<input type="button" value="b2" οnclick="JAVAScript:func_sub('b2.ASP')"> </form>
<script language="JAVAScript">
function func_sub(sAction){
document.myForm.action = sAction;
document.myForm.submIT();
}
</script>