form-submit.html 304 B

123456789101112131415
  1. <!DOCTYPE html>
  2. <head>
  3. <script>
  4. function test() {
  5. var form = document.getElementById("test");
  6. form.action = "pass.html";
  7. form.submit();
  8. }
  9. </script>
  10. <body>
  11. <form id="test" action="javascript:test()">
  12. <input type="submit" value="Submit the form; you should PASS when done">
  13. </form>
  14. </body>