Email地址确认Script

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 liujun999999 的 blog

--------------------------------------------------------------------------------

<!--one step to installing this script-->

<!--1)simply copy everything below, and insert into body section of page-->

<!--add other form elements into form as desired-->

<form name="validation" onsubmit="return checkbae()">

please input a valid email address:<br>

<input type="text" size=18 name="emailcheck">

<input type="submit" value="submit">

</form>

<script nguage="javascript1.2">

/*

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 filter=/^.+@.+\..{2,3}$/

if (filter.test(str))

testresults=true

else{

alert("please input a valid email address!")

testresults=false

}

return (testresults)

}

</script>

<script>

function checkbae(){

if (document.layers||document.all)

return checkemail()

else

return true

}

</script>

<p align="center"><font face="arial" size="-2">this free script provided by</font><br>

<font face="arial, helvetica" size="-2"><a href="http://wsabstract.com">website

abstraction</a></font></p>
 

--------------------------------------------------------------------------------

   

本文关键:Email地址确认Script
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top