執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <p>Enter names in the fields, then click "Submit" to submit the form:</p> <form id="frm1" action="/action_page.php"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br><br> <input type="button" onclick="myFunction()" value="Submit"> </form> <script> function myFunction() { document.getElementById("frm1").submit(); } </script> </body> </html>