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

· 10년 전 · 1255

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,468
10년 전 조회 1,416
10년 전 조회 1,887
10년 전 조회 1,399
10년 전 조회 1,381
10년 전 조회 1,628
10년 전 조회 1,414
10년 전 조회 1,441
10년 전 조회 1,291
10년 전 조회 1,559
10년 전 조회 1,373
10년 전 조회 1,286
10년 전 조회 1,398
10년 전 조회 2,036
10년 전 조회 1,393
10년 전 조회 1,372
10년 전 조회 1,430
10년 전 조회 1,499
10년 전 조회 1,975
10년 전 조회 1,567
10년 전 조회 1,416
10년 전 조회 1,317
10년 전 조회 1,345
10년 전 조회 1,451
10년 전 조회 1,382
10년 전 조회 1,448
10년 전 조회 1,343
10년 전 조회 1,513
10년 전 조회 1,364
10년 전 조회 1,342
10년 전 조회 1,287
10년 전 조회 1,962
10년 전 조회 1,452
10년 전 조회 1,355
10년 전 조회 1,371
10년 전 조회 1,370
10년 전 조회 1,388
10년 전 조회 1,363
10년 전 조회 1,872
10년 전 조회 1,340
10년 전 조회 1,392
10년 전 조회 1,274
10년 전 조회 1,867
10년 전 조회 1,449
10년 전 조회 1,443
10년 전 조회 1,479
10년 전 조회 1,428
10년 전 조회 1,430
10년 전 조회 1,363
10년 전 조회 1,256
10년 전 조회 1,400
10년 전 조회 1,253
10년 전 조회 1,630
10년 전 조회 1,325
10년 전 조회 1,323
10년 전 조회 1,314
10년 전 조회 1,335
10년 전 조회 1,398
10년 전 조회 1,306
10년 전 조회 1,338
10년 전 조회 1,531
10년 전 조회 1,320
10년 전 조회 1,428
10년 전 조회 1,406
10년 전 조회 1,429
10년 전 조회 1,573
10년 전 조회 1,408
10년 전 조회 1,408
10년 전 조회 1,396
10년 전 조회 1,500
10년 전 조회 1,399
10년 전 조회 1,360
10년 전 조회 1,367
10년 전 조회 1,390
10년 전 조회 1,437
10년 전 조회 1,366
10년 전 조회 1,584
10년 전 조회 1,733
10년 전 조회 1,640
10년 전 조회 1,409
10년 전 조회 1,403
10년 전 조회 1,359
10년 전 조회 1,355
10년 전 조회 1,461
10년 전 조회 1,371
10년 전 조회 1,328
10년 전 조회 1,394
10년 전 조회 1,735
10년 전 조회 2,209
10년 전 조회 1,768
10년 전 조회 1,572
10년 전 조회 1,442
10년 전 조회 1,410
10년 전 조회 1,428
10년 전 조회 1,385
10년 전 조회 1,407
10년 전 조회 1,421
10년 전 조회 1,593
10년 전 조회 1,480
10년 전 조회 2,224