특정 이메일 입력 금지및 이메일 유효성 검사하기 입니다.

· 10년 전 · 938

daum, naver, yahoo,hanmail 계정은 입력할 수 없습니다<br>
 
<form name="validation" onSubmit="return checkbae()">
이메일 주소 입력 :
<input type="text" size=18 name="emailcheck"><br>
<input type="submit">
</form>
 
<script language="JavaScript1.2">
 
var invalidaddress=new Array()
invalidaddress[0]="daum"
invalidaddress[1]="naver"
invalidaddress[2]="yahoo"
invalidaddress[3]="hanmail"
 
var testresults
function checkemail(){
var invalidcheck=0;
var str=document.validation.emailcheck.value
var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str)){
var tempstring=str.split("@")
tempstring=tempstring[1].split(".")
for (i=0;i<invalidaddress.length;i++){
if (tempstring[0]==invalidaddress[i])
invalidcheck=1
}
if (invalidcheck!=1)
testresults=true
else{
alert("입력 금지된 계정입니다")
testresults=false
}
}
else{
alert("이메일 주소가 유효하지 않습니다")
testresults=false
}
return (testresults)
}
function checkbae(){
if (document.layers||document.getElementById||document.all)
return checkemail()
else
return true
}
</script> 

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
10년 전 조회 1,173
10년 전 조회 1,093
10년 전 조회 1,542
10년 전 조회 1,047
10년 전 조회 1,056
10년 전 조회 1,287
10년 전 조회 1,060
10년 전 조회 1,116
10년 전 조회 970
10년 전 조회 1,213
10년 전 조회 1,042
10년 전 조회 947
10년 전 조회 1,000
10년 전 조회 1,710
10년 전 조회 1,051
10년 전 조회 1,057
10년 전 조회 1,027
10년 전 조회 1,177
10년 전 조회 1,638
10년 전 조회 1,251
10년 전 조회 1,053
10년 전 조회 977
10년 전 조회 1,039
10년 전 조회 1,111
10년 전 조회 1,024
10년 전 조회 1,101
10년 전 조회 1,014
10년 전 조회 1,177
10년 전 조회 1,041
10년 전 조회 1,029
10년 전 조회 969
10년 전 조회 1,610
10년 전 조회 1,103
10년 전 조회 1,036
10년 전 조회 1,061
10년 전 조회 1,063
10년 전 조회 1,066
10년 전 조회 1,093
10년 전 조회 1,554
10년 전 조회 1,009
10년 전 조회 1,077
10년 전 조회 968
10년 전 조회 1,537
10년 전 조회 1,153
10년 전 조회 1,145
10년 전 조회 1,211
10년 전 조회 1,148
10년 전 조회 1,143
10년 전 조회 1,078
10년 전 조회 939
10년 전 조회 1,094
10년 전 조회 963
10년 전 조회 1,262
10년 전 조회 1,000
10년 전 조회 977
10년 전 조회 1,017
10년 전 조회 1,036
10년 전 조회 1,080
10년 전 조회 1,016
10년 전 조회 1,032
10년 전 조회 1,189
10년 전 조회 1,031
10년 전 조회 1,104
10년 전 조회 1,046
10년 전 조회 1,114
10년 전 조회 1,199
10년 전 조회 1,075
10년 전 조회 1,049
10년 전 조회 1,072
10년 전 조회 1,181
10년 전 조회 1,070
10년 전 조회 1,029
10년 전 조회 1,052
10년 전 조회 1,064
10년 전 조회 1,014
10년 전 조회 1,021
10년 전 조회 1,273
10년 전 조회 1,403
10년 전 조회 1,326
10년 전 조회 1,047
10년 전 조회 1,057
10년 전 조회 1,034
10년 전 조회 1,035
10년 전 조회 1,138
10년 전 조회 1,092
10년 전 조회 975
10년 전 조회 1,044
10년 전 조회 1,428
10년 전 조회 1,856
10년 전 조회 1,460
10년 전 조회 1,238
10년 전 조회 1,274
10년 전 조회 1,069
10년 전 조회 1,064
10년 전 조회 1,108
10년 전 조회 1,040
10년 전 조회 1,085
10년 전 조회 1,067
10년 전 조회 1,278
10년 전 조회 1,177