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

· 10년 전 · 902

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,155
10년 전 조회 1,075
10년 전 조회 1,489
10년 전 조회 1,001
10년 전 조회 1,015
10년 전 조회 1,252
10년 전 조회 1,018
10년 전 조회 1,074
10년 전 조회 916
10년 전 조회 1,182
10년 전 조회 1,005
10년 전 조회 906
10년 전 조회 968
10년 전 조회 1,668
10년 전 조회 1,015
10년 전 조회 1,018
10년 전 조회 992
10년 전 조회 1,151
10년 전 조회 1,600
10년 전 조회 1,235
10년 전 조회 1,017
10년 전 조회 940
10년 전 조회 1,011
10년 전 조회 1,084
10년 전 조회 983
10년 전 조회 1,062
10년 전 조회 969
10년 전 조회 1,140
10년 전 조회 1,004
10년 전 조회 982
10년 전 조회 936
10년 전 조회 1,567
10년 전 조회 1,069
10년 전 조회 1,003
10년 전 조회 1,025
10년 전 조회 1,027
10년 전 조회 1,024
10년 전 조회 1,063
10년 전 조회 1,524
10년 전 조회 969
10년 전 조회 1,045
10년 전 조회 938
10년 전 조회 1,504
10년 전 조회 1,135
10년 전 조회 1,121
10년 전 조회 1,189
10년 전 조회 1,130
10년 전 조회 1,104
10년 전 조회 1,058
10년 전 조회 903
10년 전 조회 1,040
10년 전 조회 930
10년 전 조회 1,225
10년 전 조회 962
10년 전 조회 939
10년 전 조회 980
10년 전 조회 999
10년 전 조회 1,047
10년 전 조회 974
10년 전 조회 996
10년 전 조회 1,152
10년 전 조회 995
10년 전 조회 1,066
10년 전 조회 1,016
10년 전 조회 1,074
10년 전 조회 1,169
10년 전 조회 1,043
10년 전 조회 1,017
10년 전 조회 1,040
10년 전 조회 1,138
10년 전 조회 1,046
10년 전 조회 1,003
10년 전 조회 1,015
10년 전 조회 1,037
10년 전 조회 983
10년 전 조회 986
10년 전 조회 1,251
10년 전 조회 1,368
10년 전 조회 1,294
10년 전 조회 1,011
10년 전 조회 1,019
10년 전 조회 996
10년 전 조회 999
10년 전 조회 1,099
10년 전 조회 1,061
10년 전 조회 935
10년 전 조회 1,015
10년 전 조회 1,401
10년 전 조회 1,824
10년 전 조회 1,419
10년 전 조회 1,203
10년 전 조회 1,253
10년 전 조회 1,032
10년 전 조회 1,026
10년 전 조회 1,065
10년 전 조회 1,001
10년 전 조회 1,046
10년 전 조회 1,027
10년 전 조회 1,255
10년 전 조회 1,144