[求助]一个登录使用javascript的错误,
各位高手,请教一下,我登陆的时候为什么没有执行javascript啊,我用的是Structs架构,代码在下面,在线等<script language="JavaScript" type="text/JavaScript" src="./script/globalFun.js"></script>
<script language=javascript>
function CheckForm(){
if(isEmpty(document.form1.tuser.id.value)){
alert("请输入登陆帐号!");
document.form1.tuser.id.focus();
return false;
}
if(isEmpty(document.tuser.id.pwd.value)){
alert("请输入登陆密码!");
document.tuser.id.pwd.focus();
return false;
}
return true;
}
</script>
<script language="JavaScript" type="text/JavaScript">
<form name="form1" onSubmit="return CheckForm()" action="index.do" method="Post">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="38%" height="30"><div align="right">用户名:</div></td>
<td width="62%" height="30"><input name="tuser.id" type="text" size="10"></td>
</tr>
<tr>
<td height="30"><div align="right">密 码:</div></td>
<td height="30"><input name="tuser.pwd" type="password" size="10"></td>
</tr>
</table>
<table width="100%" height="41" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="52%" height="37"><div align="center">
<input name="submit" type="image" alt="登陆" src="images/btn_login.gif" width="66" height="30">
</div></td>
<td width="48%"><div align="center">
<img src="images/btn_reset.gif" alt="清除" name="clear" width="66" height="30" border="0" onclick="reset();" style="cursor:hand;">
</div></td>
[此贴子已经被作者于2007-9-5 23:45:19编辑过]