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