代替window.location get方式post提交

<script language=javascript> 
document.write("<form action=a.asp method=post name=formx1 style='display:none'>");
document.write("<input type=hidden name=name value='"+username+"'");
document.write("</form>");
document.formx1.submit();
</script>

你可能感兴趣的:(代替window.location get方式post提交)