summaryrefslogtreecommitdiffstats
path: root/dom/html/test/forms/file_double_submit.html
blob: 44889f86bc8700193615d3f1ce7c8e36293e28c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
<form action="PASS.html" method="POST"><input name="foo"></form>
<button>clicky</button>

<script>
document.querySelector("button")
  .addEventListener("click", () => {
    let f = document.querySelector("form");
    f.dispatchEvent(new Event("submit"));
    f.submit();
  });
</script>