表单验证
来源:互联网 发布:拍电视剧编辑软件 编辑:程序博客网 时间:2024/04/25 20:40
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script>
function checktype()
{
year=document.fm.year.value;
email=document.fm.email.value;
age=document.fm.age.value;
if(year.length!=4||isNaN(year))
{
alert("年份不正确!");
return false;
}
if(email.length==""||(email.indexOf('@')==-1)||(email.indexOf('.')==-1))
{
alert("电子邮件输入错误!");
return false;
}
if(age.length!=2||isNaN(age)||parseInt(age)<20||parseInt(age)>50)
{
alert("你的年龄不符合我们的要求");
return false;
}
return true;
}
</script>
</head>
- 验证表单
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- 表单验证
- CSDN的博客好慢
- 某公司招收.net高级程序员的试卷
- 密码学的发展方向与最新进展
- 使用Apache Jmeter测试JSP应用程序性能
- .Net 面试题
- 表单验证
- C#中使用存储过程,C#分页存储过程
- 二维数组和指针
- 编译BOOST
- WinFX(.NET framework 3.0) 随想
- ASP.NET程序中常用的三十三种代码
- 普及的力量
- 解决网络时断时续:Nvidia-NFORCE-nvnet.ko网卡驱动安装详解
- 小赵,是我