道夫齐格勒电影:问一段ASP程序 在线等

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 03:06:53
if(document.form1.action.value=="")
{
document.form1.action.focus();
alert("action");
return false;
}
if(document.form1.username.value=="")
{
document.form1.username.focus();
alert("username");
return false;
}
if(document.form1.password.value=="")
{
document.form1.password.focus();
alert("password");
return false;
}
if(document.form1.validate.value=="")
{
document.form1.validate.focus();
alert("validate");
return false;
}
if(document.form1.KeepLogin.value=="")
{
document.form1.KeepLogin.focus();
alert("KeepLogin");
return false;
}
if(document.form1. .value=="")
{
document.form1. .focus();
alert(" ");
return false;
}

你只是贴出了代码,不清楚你到底要问什么,如果是要问最后一段代码的意思的话,我可以很肯定的告诉你,那一段是不正确的
if(document.form1. .value=="")
{
document.form1. .focus();
alert(" ");
return false;
}
因为缺少了对象,取掉之后代码就可以正常运行