html不点击提交,自动post
1 <!DOCTYPE html> 2 <html> 3 4 5 <form id="form1" name="form1" method="post" action="http://******"> 6 <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTEwNDg5ODQ0MGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFDmNoa2JveFJlTWVtYmVyGapfKc4Fzs8l32Shl9r85M+S3+pQRKLGyH6NVDgKfqU=" /> 7 8 <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBQKEh67uBAKvpuq2CAKExp2FBwKOqc3WCwKhwImNC+krskPBD/qS3X7uNMBi7JMYe9ksFxBt1zim+QUQhJLs" /> 9 10 <input name="username" type="hidden" id="username" value="****" /> 11 <input name="userpwd" type="hidden" id="userpwd" value="****" /> 12 13 <input name="chkboxReMember" type="checkbox" id="chkboxReMember" checked="checked" value="off"/> 14 <input type="hidden" name="ctl00" value="登录" class="btn btn-primary btn-login" type="button" /> 15 16 </form> 17 <script language="javascript"> 18 document.form1.submit(); 19 </script> 20 21 </html>
注意:form1表单中不要有submit类型