JS表单提交

测试一:

function submit()
{
var form1=document.getElementById("form1")
form1.action="/manager/alipay/alipay.asp";
form1.submit();
}

测试二:
function test()
{
    document.getElementById("myform").submit();    
    alert(11);
}

测试三:
document.getElementById("myFormid").action="xxxx.action";
document.myform.submit();

原文地址:https://www.cnblogs.com/mazey/p/6541115.html