<html> | |
<head> | |
<title>JavaScript Redirect</title> | |
<script> | |
if (window.testRunner) { | |
testRunner.clearBackForwardList(); | |
testRunner.waitUntilDone(); | |
} | |
</script> | |
</head> | |
<body> | |
<p>This page submits a form after the load event. | |
It must create a new history entry. </p> | |
<form id="form" action="resources/redirect-target.html#2"></form> | |
<script> | |
window.onload = function() { | |
setTimeout(function () { | |
document.getElementById("form").submit(); | |
}, 0); | |
} | |
</script> | |
</body> | |
</html> |