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

· 10년 전 · 1382

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,614
10년 전 조회 1,557
10년 전 조회 2,021
10년 전 조회 1,563
10년 전 조회 1,516
10년 전 조회 1,782
10년 전 조회 1,564
10년 전 조회 1,589
10년 전 조회 1,454
10년 전 조회 1,707
10년 전 조회 1,532
10년 전 조회 1,414
10년 전 조회 1,533
10년 전 조회 2,183
10년 전 조회 1,514
10년 전 조회 1,496
10년 전 조회 1,586
10년 전 조회 1,631
10년 전 조회 2,101
10년 전 조회 1,684
10년 전 조회 1,541
10년 전 조회 1,444
10년 전 조회 1,477
10년 전 조회 1,575
10년 전 조회 1,531
10년 전 조회 1,591
10년 전 조회 1,483
10년 전 조회 1,622
10년 전 조회 1,490
10년 전 조회 1,474
10년 전 조회 1,424
10년 전 조회 2,082
10년 전 조회 1,589
10년 전 조회 1,485
10년 전 조회 1,495
10년 전 조회 1,490
10년 전 조회 1,497
10년 전 조회 1,470
10년 전 조회 1,990
10년 전 조회 1,446
10년 전 조회 1,508
10년 전 조회 1,384
10년 전 조회 1,986
10년 전 조회 1,567
10년 전 조회 1,556
10년 전 조회 1,609
10년 전 조회 1,530
10년 전 조회 1,558
10년 전 조회 1,465
10년 전 조회 1,383
10년 전 조회 1,495
10년 전 조회 1,387
10년 전 조회 1,749
10년 전 조회 1,445
10년 전 조회 1,459
10년 전 조회 1,440
10년 전 조회 1,463
10년 전 조회 1,529
10년 전 조회 1,423
10년 전 조회 1,458
10년 전 조회 1,648
10년 전 조회 1,443
10년 전 조회 1,545
10년 전 조회 1,526
10년 전 조회 1,535
10년 전 조회 1,685
10년 전 조회 1,530
10년 전 조회 1,535
10년 전 조회 1,511
10년 전 조회 1,627
10년 전 조회 1,534
10년 전 조회 1,489
10년 전 조회 1,484
10년 전 조회 1,527
10년 전 조회 1,561
10년 전 조회 1,499
10년 전 조회 1,690
10년 전 조회 1,834
10년 전 조회 1,762
10년 전 조회 1,538
10년 전 조회 1,540
10년 전 조회 1,486
10년 전 조회 1,476
10년 전 조회 1,572
10년 전 조회 1,484
10년 전 조회 1,450
10년 전 조회 1,512
10년 전 조회 1,850
10년 전 조회 2,305
10년 전 조회 1,879
10년 전 조회 1,701
10년 전 조회 1,556
10년 전 조회 1,512
10년 전 조회 1,538
10년 전 조회 1,515
10년 전 조회 1,519
10년 전 조회 1,521
10년 전 조회 1,692
10년 전 조회 1,599
10년 전 조회 2,349