summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/misc/multiple-submit.html
blob: cbf4982135aac3bd2dddf1b7d7a076319c9a455a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<form name=f action='resources/post-echo-and-notify-done.cgi' method=post>
<input id=sub type=submit onclick='return clickf();'>
<input id=val type=hidden name=submitted value='form1'>
</form>

<form name=f2 action='resources/post-echo-and-notify-done.cgi' method=post>
<input id=val type=hidden name=submitted value='form2'>
</form>

<script>
function clickf()
{
    document.f2.submit();
    return true;
}

if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
}

setTimeout(function() { document.getElementById('sub').click(); }, 0);
</script>