Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Navigation in onload handler through form submission</title>
<script>
// Verify is called after onload event to ensure history has been stable.
function verify() {
// Navigation in onload handler through form submission should not
// increse history length.
var runner = window.top.opener;
runner.verify(history.length, 1,
"history.length of subtest '" + top.document.title + "'.");
runner.scheduleNextTest();
setTimeout(window.close.bind(top), 0);
}
</script>
</head>
<body onload="setTimeout(verify, 0);">
</body>
</html>