1 <form method=
"post" action=
"resources/form-submission-before-load-page2.html"></form>
3 if (window
.testRunner
) {
4 testRunner
.clearBackForwardList();
5 testRunner
.dumpBackForwardList();
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
9 // Test that submitting the form, using a POST method, before the 'load' event
10 // results in the current session history item being replaced by the next one.
11 document
.forms
[0].submit();