我设了但还是不管用
我的源代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function login() {
if (template.logName.value.length==0) {
alert("用户代码不能为空,请您重新输入!");
template.logName.focus();
return false;
}
if (template.password.value.length==0) {
alert("用户密码不能为空,请您重新输入!");
template.password.focus();
return false;
}
template.submit();