<SCRIPT FOR=window EVENT=onunload>
    window.document.frmsubmit.submit();//原来此处错误1    alert("The onunload event fired for the window object.");
</SCRIPT>
<html>
<head><title>asdfasdf</title>
</head>
<body>
<form action="wer.asp" target="_blank" name="frmsubmit"><!--原来此处错误2--><input name="inputtxt" value="cool">
</form> <!--原来此处错误3-->
test
</body>
</html>