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

· 10년 전 · 522

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년 전 조회 701
10년 전 조회 646
10년 전 조회 1,114
10년 전 조회 629
10년 전 조회 641
10년 전 조회 864
10년 전 조회 645
10년 전 조회 704
10년 전 조회 559
10년 전 조회 827
10년 전 조회 641
10년 전 조회 540
10년 전 조회 599
10년 전 조회 1,289
10년 전 조회 656
10년 전 조회 646
10년 전 조회 630
10년 전 조회 790
10년 전 조회 1,205
10년 전 조회 798
10년 전 조회 669
10년 전 조회 583
10년 전 조회 638
10년 전 조회 691
10년 전 조회 636
10년 전 조회 702
10년 전 조회 610
10년 전 조회 747
10년 전 조회 629
10년 전 조회 607
10년 전 조회 579
10년 전 조회 1,217
10년 전 조회 691
10년 전 조회 633
10년 전 조회 642
10년 전 조회 630
10년 전 조회 661
10년 전 조회 644
10년 전 조회 1,127
10년 전 조회 586
10년 전 조회 625
10년 전 조회 537
10년 전 조회 1,125
10년 전 조회 678
10년 전 조회 682
10년 전 조회 738
10년 전 조회 691
10년 전 조회 744
10년 전 조회 621
10년 전 조회 523
10년 전 조회 634
10년 전 조회 551
10년 전 조회 847
10년 전 조회 563
10년 전 조회 547
10년 전 조회 584
10년 전 조회 598
10년 전 조회 653
10년 전 조회 561
10년 전 조회 594
10년 전 조회 741
10년 전 조회 606
10년 전 조회 652
10년 전 조회 636
10년 전 조회 656
10년 전 조회 792
10년 전 조회 657
10년 전 조회 621
10년 전 조회 627
10년 전 조회 738
10년 전 조회 653
10년 전 조회 594
10년 전 조회 609
10년 전 조회 610
10년 전 조회 561
10년 전 조회 582
10년 전 조회 778
10년 전 조회 976
10년 전 조회 811
10년 전 조회 607
10년 전 조회 606
10년 전 조회 570
10년 전 조회 592
10년 전 조회 681
10년 전 조회 621
10년 전 조회 538
10년 전 조회 588
10년 전 조회 982
10년 전 조회 1,436
10년 전 조회 980
10년 전 조회 810
10년 전 조회 776
10년 전 조회 627
10년 전 조회 628
10년 전 조회 643
10년 전 조회 609
10년 전 조회 625
10년 전 조회 658
10년 전 조회 790
10년 전 조회 699