<html>
<body>
<form id="theForm" action="fail.html" method="GET" target="_top">
<input type="submit" value="Submit"/>
</form>
<script>
var f = document.getElementById('theForm');
f.submit();
</script>
</body>
</html>

