<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form id="f1" action="http://oldboyedu.com"> <input type="text"> <input type="submit" value="提交"> <a onclick="subMitout()">提交吧</a> </form> <script> function subMitout() { document.getElementById('f1').submit() } </script> </body> </html>