<!--设置默认焦点-->
<body class=bdbg onLoad="form1.userID.focus();">
<script language=javascript>
//回车键改变焦点
function enter()
{
if(event.keyCode==13)
{
event.keyCode=9;
return true;
}
}
//判断输入框是否为空
function nonull()
{
if(form1.userID.value==""||form1.user_Password.value=="")
alert("用户名或密码不能为空");
document.form1.submit;
}
<body class=bdbg onLoad="form1.userID.focus();">
<script language=javascript>
//回车键改变焦点
function enter()
{
if(event.keyCode==13)
{
event.keyCode=9;
return true;
}
}
//判断输入框是否为空
function nonull()
{
if(form1.userID.value==""||form1.user_Password.value=="")
alert("用户名或密码不能为空");
document.form1.submit;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货