日期:2014-05-16  浏览次数:20350 次

使用JS提交表单,该表action
<script>

function replace(){

myForm.action='bb.html';
myForm.method='POST';
myForm.submit();

}

</script>

<form id="myForm" name="myForm" method="post" action="aa.html">
<input  type="button" value="dd" onclick="replace();" />
</form>


使用这个方法可以使用多个内容来提交表单
myForm.action='index.php?act=edit';
myForm.method='POST';
myForm.submit();

myForm.action='index.php?act=del';
myForm.method='POST';
myForm.submit();