js验证电子邮箱,js验证email合法性,javascript验证电子信箱
来源:互联网 发布:阿芙精油 知乎 编辑:程序博客网 时间:2024/04/30 23:58
<script>
function Juge(theForm)
{
if (theForm.txtemail.value == "")
{
alert("请输入电子信箱!");
theForm.txtemail.focus();
return (false);
}
else{
var temp = document.getElementById("txtemail");
//对电子邮件的验证
var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
function Juge(theForm)
{
if (theForm.txtemail.value == "")
{
alert("请输入电子信箱!");
theForm.txtemail.focus();
return (false);
}
else{
var temp = document.getElementById("txtemail");
//对电子邮件的验证
var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
if(!myreg.test(temp.value)){
alert('提示:请输入有效的E_mail!');
return (false);
txtemail.focus();
alert('提示:请输入有效的E_mail!');
return (false);
txtemail.focus();
}
}
if (theForm.txtcontent.value == "")
{
alert("请您输入您的留言内容");
theForm.txtcontent.focus();
return (false);
}
if (theForm.txtcode.value == "")
{
alert("请输入验证码");
theForm.txtcode.focus();
return (false);
}
}
</script>
if (theForm.txtcontent.value == "")
{
alert("请您输入您的留言内容");
theForm.txtcontent.focus();
return (false);
}
if (theForm.txtcode.value == "")
{
alert("请输入验证码");
theForm.txtcode.focus();
return (false);
}
}
</script>
- js验证电子邮箱,js验证email合法性,javascript验证电子信箱
- js电子邮箱验证代码
- js 验证电子邮箱
- js验证电子邮箱
- JavaScript正则表达式验证电子邮箱email规则
- js 验证身份证号码合法性
- js 验证身份证合法性
- js验证手机号合法性
- javascript合法验证 js数据验证、js email验证、js url验证、js长度验证、js数字验证等
- js验证Email
- js 验证email
- JS验证Email
- js 正则验证email
- email地址验证(js)
- js 验证 email
- js验证电子邮箱的正则表达式
- js验证电子邮箱的正则表达式使用
- JS验证身份证的合法性
- MFC中折线的拖拽问题
- access 表打开后,默认输入法的问题,access默认输入法
- spring tx:advice 和 aop:config 配置事务
- windbg dump分析入门之符号相关
- GB2312码
- js验证电子邮箱,js验证email合法性,javascript验证电子信箱
- GMSK调制原理
- 使用poi导出excel
- mingw
- (转)关于CString总结
- GTK+
- 在IIS6.0上将php-cgi运行模式切换到php-isapi运行模式
- 编写函数实现:clear all but least signficant n bits of x
- 什么是AOP