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

· 10년 전 · 1290

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,505
10년 전 조회 1,460
10년 전 조회 1,915
10년 전 조회 1,437
10년 전 조회 1,416
10년 전 조회 1,677
10년 전 조회 1,448
10년 전 조회 1,482
10년 전 조회 1,340
10년 전 조회 1,610
10년 전 조회 1,412
10년 전 조회 1,323
10년 전 조회 1,434
10년 전 조회 2,081
10년 전 조회 1,423
10년 전 조회 1,404
10년 전 조회 1,465
10년 전 조회 1,534
10년 전 조회 2,003
10년 전 조회 1,597
10년 전 조회 1,444
10년 전 조회 1,346
10년 전 조회 1,370
10년 전 조회 1,481
10년 전 조회 1,421
10년 전 조회 1,477
10년 전 조회 1,379
10년 전 조회 1,534
10년 전 조회 1,394
10년 전 조회 1,373
10년 전 조회 1,320
10년 전 조회 1,990
10년 전 조회 1,486
10년 전 조회 1,384
10년 전 조회 1,408
10년 전 조회 1,394
10년 전 조회 1,412
10년 전 조회 1,389
10년 전 조회 1,898
10년 전 조회 1,361
10년 전 조회 1,416
10년 전 조회 1,303
10년 전 조회 1,895
10년 전 조회 1,478
10년 전 조회 1,468
10년 전 조회 1,510
10년 전 조회 1,451
10년 전 조회 1,462
10년 전 조회 1,393
10년 전 조회 1,291
10년 전 조회 1,422
10년 전 조회 1,278
10년 전 조회 1,658
10년 전 조회 1,353
10년 전 조회 1,355
10년 전 조회 1,346
10년 전 조회 1,370
10년 전 조회 1,426
10년 전 조회 1,334
10년 전 조회 1,370
10년 전 조회 1,561
10년 전 조회 1,346
10년 전 조회 1,454
10년 전 조회 1,430
10년 전 조회 1,458
10년 전 조회 1,599
10년 전 조회 1,435
10년 전 조회 1,430
10년 전 조회 1,422
10년 전 조회 1,526
10년 전 조회 1,434
10년 전 조회 1,389
10년 전 조회 1,406
10년 전 조회 1,422
10년 전 조회 1,460
10년 전 조회 1,396
10년 전 조회 1,609
10년 전 조회 1,764
10년 전 조회 1,669
10년 전 조회 1,436
10년 전 조회 1,439
10년 전 조회 1,391
10년 전 조회 1,383
10년 전 조회 1,489
10년 전 조회 1,404
10년 전 조회 1,355
10년 전 조회 1,416
10년 전 조회 1,767
10년 전 조회 2,235
10년 전 조회 1,805
10년 전 조회 1,599
10년 전 조회 1,478
10년 전 조회 1,441
10년 전 조회 1,456
10년 전 조회 1,416
10년 전 조회 1,434
10년 전 조회 1,446
10년 전 조회 1,606
10년 전 조회 1,512
10년 전 조회 2,260