请问这样为什么还会提交?
<html>
<head>
<script language="javascript">
function check()
{
if(document.form1.text1.value=="")
{
alert("null");
return;
}
else
{
document.form1.submit;
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form action="test_action.jsp" method="post" name="form1">
<textarea name="text1" cols="" rows=""></textarea>
<input name="test" type="submit" onclick="javascript:check()">
</form>
</body>
</html>
当文本框为空时,有提示,按确定后还是会提交上去