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

· 10년 전 · 1341

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,567
10년 전 조회 1,513
10년 전 조회 1,977
10년 전 조회 1,503
10년 전 조회 1,470
10년 전 조회 1,734
10년 전 조회 1,510
10년 전 조회 1,531
10년 전 조회 1,394
10년 전 조회 1,661
10년 전 조회 1,478
10년 전 조회 1,367
10년 전 조회 1,488
10년 전 조회 2,130
10년 전 조회 1,474
10년 전 조회 1,451
10년 전 조회 1,528
10년 전 조회 1,589
10년 전 조회 2,054
10년 전 조회 1,638
10년 전 조회 1,499
10년 전 조회 1,390
10년 전 조회 1,422
10년 전 조회 1,526
10년 전 조회 1,478
10년 전 조회 1,536
10년 전 조회 1,433
10년 전 조회 1,573
10년 전 조회 1,442
10년 전 조회 1,421
10년 전 조회 1,374
10년 전 조회 2,029
10년 전 조회 1,547
10년 전 조회 1,422
10년 전 조회 1,450
10년 전 조회 1,438
10년 전 조회 1,457
10년 전 조회 1,433
10년 전 조회 1,947
10년 전 조회 1,401
10년 전 조회 1,463
10년 전 조회 1,345
10년 전 조회 1,947
10년 전 조회 1,521
10년 전 조회 1,519
10년 전 조회 1,568
10년 전 조회 1,489
10년 전 조회 1,517
10년 전 조회 1,430
10년 전 조회 1,342
10년 전 조회 1,459
10년 전 조회 1,334
10년 전 조회 1,705
10년 전 조회 1,398
10년 전 조회 1,406
10년 전 조회 1,391
10년 전 조회 1,414
10년 전 조회 1,479
10년 전 조회 1,381
10년 전 조회 1,414
10년 전 조회 1,598
10년 전 조회 1,381
10년 전 조회 1,495
10년 전 조회 1,481
10년 전 조회 1,497
10년 전 조회 1,648
10년 전 조회 1,487
10년 전 조회 1,494
10년 전 조회 1,462
10년 전 조회 1,579
10년 전 조회 1,476
10년 전 조회 1,450
10년 전 조회 1,448
10년 전 조회 1,470
10년 전 조회 1,510
10년 전 조회 1,451
10년 전 조회 1,640
10년 전 조회 1,798
10년 전 조회 1,717
10년 전 조회 1,484
10년 전 조회 1,489
10년 전 조회 1,441
10년 전 조회 1,436
10년 전 조회 1,529
10년 전 조회 1,443
10년 전 조회 1,399
10년 전 조회 1,458
10년 전 조회 1,799
10년 전 조회 2,270
10년 전 조회 1,842
10년 전 조회 1,641
10년 전 조회 1,512
10년 전 조회 1,481
10년 전 조회 1,499
10년 전 조회 1,461
10년 전 조회 1,479
10년 전 조회 1,487
10년 전 조회 1,650
10년 전 조회 1,555
10년 전 조회 2,304