- 论坛徽章:
- 0
|
[color="#990000"]Email地址确认Script
--------------------------------------------------------------------------------
Please input a valid email address:
/*
Advanced Email Check credit-
By Website Abstraction (
www.wsabstract.com
)
Over 200+ free scripts here!
*/
var testresults
function checkemail(){
var str=document.validation.emailcheck.value
var
[email=filter=/^.+@.+..{2,3}$/]filter=/^.+@.+..{2,3}$/[/email]
if (filter.test(str))
testresults=true
else{
alert("Please input a valid email address!")
testresults=false
}
return (testresults)
}
function checkbae(){
if (document.layers||document.all)
return checkemail()
else
return true
}
This free script provided by
http://wsabstract.com">Website[/url]
Abstraction
--------------------------------------------------------------------------------
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4849/showart_36894.html |
|