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

· 10년 전 · 394

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년 전 조회 567
10년 전 조회 499
10년 전 조회 977
10년 전 조회 487
10년 전 조회 514
10년 전 조회 727
10년 전 조회 510
10년 전 조회 571
10년 전 조회 424
10년 전 조회 700
10년 전 조회 511
10년 전 조회 455
10년 전 조회 453
10년 전 조회 1,144
10년 전 조회 526
10년 전 조회 518
10년 전 조회 482
10년 전 조회 637
10년 전 조회 1,083
10년 전 조회 682
10년 전 조회 529
10년 전 조회 468
10년 전 조회 506
10년 전 조회 557
10년 전 조회 489
10년 전 조회 548
10년 전 조회 473
10년 전 조회 610
10년 전 조회 497
10년 전 조회 487
10년 전 조회 448
10년 전 조회 1,064
10년 전 조회 541
10년 전 조회 491
10년 전 조회 506
10년 전 조회 487
10년 전 조회 527
10년 전 조회 496
10년 전 조회 1,005
10년 전 조회 445
10년 전 조회 493
10년 전 조회 394
10년 전 조회 994
10년 전 조회 546
10년 전 조회 529
10년 전 조회 600
10년 전 조회 551
10년 전 조회 608
10년 전 조회 492
10년 전 조회 395
10년 전 조회 499
10년 전 조회 414
10년 전 조회 707
10년 전 조회 428
10년 전 조회 404
10년 전 조회 449
10년 전 조회 463
10년 전 조회 516
10년 전 조회 421
10년 전 조회 447
10년 전 조회 607
10년 전 조회 457
10년 전 조회 503
10년 전 조회 492
10년 전 조회 510
10년 전 조회 638
10년 전 조회 507
10년 전 조회 465
10년 전 조회 480
10년 전 조회 589
10년 전 조회 500
10년 전 조회 443
10년 전 조회 457
10년 전 조회 462
10년 전 조회 415
10년 전 조회 431
10년 전 조회 642
10년 전 조회 847
10년 전 조회 660
10년 전 조회 457
10년 전 조회 459
10년 전 조회 421
10년 전 조회 437
10년 전 조회 542
10년 전 조회 483
10년 전 조회 386
10년 전 조회 439
10년 전 조회 830
10년 전 조회 1,285
10년 전 조회 853
10년 전 조회 650
10년 전 조회 630
10년 전 조회 493
10년 전 조회 473
10년 전 조회 496
10년 전 조회 461
10년 전 조회 477
10년 전 조회 507
10년 전 조회 636
10년 전 조회 543
🐛 버그신고