8 print "Content-Type: text/html\n";
12 <form method="POST" enctype="application/x-www-form-urlencoded" action="#foo">
13 <input type="text" name="f">
14 <input type="submit" value="Submit">
16 <div id="result"></div>
18 onunload = function() {
22 alert("stage: " + sessionStorage.stage);
23 switch (sessionStorage.stage++) {
25 // Submit form in a timeout to make sure that we create a new back/forward list item.
26 setTimeout(function() {document.forms[0].submit();}, 0);
32 document.getElementById("result").innerText = "PASS";
33 if (window.testRunner)
34 testRunner.notifyDone();