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

· 10년 전 · 684

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년 전 조회 884
10년 전 조회 801
10년 전 조회 1,276
10년 전 조회 792
10년 전 조회 785
10년 전 조회 1,031
10년 전 조회 797
10년 전 조회 857
10년 전 조회 707
10년 전 조회 980
10년 전 조회 779
10년 전 조회 692
10년 전 조회 762
10년 전 조회 1,438
10년 전 조회 797
10년 전 조회 795
10년 전 조회 802
10년 전 조회 957
10년 전 조회 1,364
10년 전 조회 959
10년 전 조회 826
10년 전 조회 740
10년 전 조회 787
10년 전 조회 848
10년 전 조회 788
10년 전 조회 855
10년 전 조회 761
10년 전 조회 912
10년 전 조회 777
10년 전 조회 745
10년 전 조회 718
10년 전 조회 1,365
10년 전 조회 846
10년 전 조회 799
10년 전 조회 798
10년 전 조회 791
10년 전 조회 800
10년 전 조회 812
10년 전 조회 1,272
10년 전 조회 740
10년 전 조회 800
10년 전 조회 694
10년 전 조회 1,282
10년 전 조회 833
10년 전 조회 835
10년 전 조회 896
10년 전 조회 851
10년 전 조회 895
10년 전 조회 784
10년 전 조회 685
10년 전 조회 802
10년 전 조회 702
10년 전 조회 994
10년 전 조회 704
10년 전 조회 707
10년 전 조회 753
10년 전 조회 767
10년 전 조회 824
10년 전 조회 726
10년 전 조회 764
10년 전 조회 903
10년 전 조회 773
10년 전 조회 812
10년 전 조회 807
10년 전 조회 823
10년 전 조회 964
10년 전 조회 825
10년 전 조회 792
10년 전 조회 788
10년 전 조회 900
10년 전 조회 824
10년 전 조회 770
10년 전 조회 789
10년 전 조회 787
10년 전 조회 742
10년 전 조회 763
10년 전 조회 957
10년 전 조회 1,137
10년 전 조회 998
10년 전 조회 781
10년 전 조회 787
10년 전 조회 740
10년 전 조회 780
10년 전 조회 859
10년 전 조회 800
10년 전 조회 711
10년 전 조회 777
10년 전 조회 1,160
10년 전 조회 1,601
10년 전 조회 1,155
10년 전 조회 980
10년 전 조회 971
10년 전 조회 826
10년 전 조회 810
10년 전 조회 818
10년 전 조회 790
10년 전 조회 806
10년 전 조회 822
10년 전 조회 981
10년 전 조회 884