这段自动提交表单的代码错在哪了?
<html>
<head>
</head>
<body onload="setTimeout('document.form1.submit()',2000)">
<form method='post' action='b.php' name='form1' target='print'>
<input type='text' name='aaa' value='aaa'>
<input type='submit' name='submit' value='submit'>
</form>
<iframe name='print' width='200' height='200' src='about:blank'>
</iframe>
</body>
</html>
提示对象不支持此属性或方法