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

· 10년 전 · 1312

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,539
10년 전 조회 1,485
10년 전 조회 1,946
10년 전 조회 1,464
10년 전 조회 1,444
10년 전 조회 1,701
10년 전 조회 1,479
10년 전 조회 1,508
10년 전 조회 1,363
10년 전 조회 1,636
10년 전 조회 1,441
10년 전 조회 1,348
10년 전 조회 1,462
10년 전 조회 2,101
10년 전 조회 1,448
10년 전 조회 1,427
10년 전 조회 1,494
10년 전 조회 1,557
10년 전 조회 2,028
10년 전 조회 1,614
10년 전 조회 1,472
10년 전 조회 1,369
10년 전 조회 1,398
10년 전 조회 1,508
10년 전 조회 1,449
10년 전 조회 1,501
10년 전 조회 1,401
10년 전 조회 1,550
10년 전 조회 1,420
10년 전 조회 1,393
10년 전 조회 1,342
10년 전 조회 2,005
10년 전 조회 1,510
10년 전 조회 1,402
10년 전 조회 1,426
10년 전 조회 1,415
10년 전 조회 1,429
10년 전 조회 1,412
10년 전 조회 1,923
10년 전 조회 1,383
10년 전 조회 1,439
10년 전 조회 1,316
10년 전 조회 1,916
10년 전 조회 1,499
10년 전 조회 1,496
10년 전 조회 1,540
10년 전 조회 1,471
10년 전 조회 1,490
10년 전 조회 1,415
10년 전 조회 1,313
10년 전 조회 1,439
10년 전 조회 1,305
10년 전 조회 1,678
10년 전 조회 1,374
10년 전 조회 1,381
10년 전 조회 1,368
10년 전 조회 1,387
10년 전 조회 1,458
10년 전 조회 1,354
10년 전 조회 1,391
10년 전 조회 1,576
10년 전 조회 1,367
10년 전 조회 1,472
10년 전 조회 1,450
10년 전 조회 1,477
10년 전 조회 1,621
10년 전 조회 1,459
10년 전 조회 1,460
10년 전 조회 1,441
10년 전 조회 1,550
10년 전 조회 1,459
10년 전 조회 1,421
10년 전 조회 1,422
10년 전 조회 1,444
10년 전 조회 1,478
10년 전 조회 1,424
10년 전 조회 1,625
10년 전 조회 1,778
10년 전 조회 1,693
10년 전 조회 1,459
10년 전 조회 1,452
10년 전 조회 1,417
10년 전 조회 1,404
10년 전 조회 1,502
10년 전 조회 1,425
10년 전 조회 1,373
10년 전 조회 1,435
10년 전 조회 1,782
10년 전 조회 2,245
10년 전 조회 1,820
10년 전 조회 1,616
10년 전 조회 1,489
10년 전 조회 1,459
10년 전 조회 1,472
10년 전 조회 1,438
10년 전 조회 1,451
10년 전 조회 1,462
10년 전 조회 1,628
10년 전 조회 1,528
10년 전 조회 2,277