为什么不能页面跳转!!!!!!!!!!!!!!!
<html>
<head>
<script language=JavaScript>
function checkform() {
var flag=true;
var str=document.form1.customer.value;
var psw=document.form1.psw.value;
if(str==""||str==null){
alert("name can't be empty!idot!");
}
else if(str!="lgj")
alert("name is wrong");
else if(psw!="123")
alert("pass word is wrong");
document.form1.action="information.jsp";
document.form1.submit();
}
</script>
</head>
<body >
<form name=form1 >
<p align=center>country<select name=cuntry >
<option value=china >china</option>
<option value=usa>usa</option>
<option value=austrilia>austrilia<option>
</select>
<p align=center>username<input type=text name="customer" maxlength=10 size=10>
<p align=center>password<input type=password name="psw" maxlength=10 size=10 >
<p align=center><input type=button name=submit value="subsmit" onClick="checkf
orm()">
<input type=reset name=reset value="reset">
</form>
</body>
</html>
错误提示: document.form1.submit();对象不支持这个属性或方法错误