Javascript验证用户名和密码
作者:fywxf 日期:2018-08-13
						<script language="JavaScript" type="text/JavaScript">
// 验证用户名和留言
function check(){
var notnull;
notnull=true;
if (document.form.name.value==""){
alert("请输入文章标题!");
document.form.name.focus();
notnull=false;
}
else
if (document.form.body.value==""){
alert("请输入文章内容!");
document.form.body.focus();
notnull=false;
}
return notnull;
}
</script>
 
					   
					   
					   
					   // 验证用户名和留言
function check(){
var notnull;
notnull=true;
if (document.form.name.value==""){
alert("请输入文章标题!");
document.form.name.focus();
notnull=false;
}
else
if (document.form.body.value==""){
alert("请输入文章内容!");
document.form.body.focus();
notnull=false;
}
return notnull;
}
</script>
评论: 0 | 引用: 0 | 查看次数: 2448
					   
发表评论
      
 上一篇
 下一篇

 
						    
						  
文章来自: 
Tags: 
