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

· 10년 전 · 1306

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,529
10년 전 조회 1,477
10년 전 조회 1,933
10년 전 조회 1,453
10년 전 조회 1,430
10년 전 조회 1,693
10년 전 조회 1,464
10년 전 조회 1,498
10년 전 조회 1,358
10년 전 조회 1,627
10년 전 조회 1,434
10년 전 조회 1,339
10년 전 조회 1,454
10년 전 조회 2,093
10년 전 조회 1,439
10년 전 조회 1,419
10년 전 조회 1,483
10년 전 조회 1,549
10년 전 조회 2,019
10년 전 조회 1,605
10년 전 조회 1,463
10년 전 조회 1,357
10년 전 조회 1,387
10년 전 조회 1,498
10년 전 조회 1,436
10년 전 조회 1,492
10년 전 조회 1,395
10년 전 조회 1,543
10년 전 조회 1,407
10년 전 조회 1,388
10년 전 조회 1,334
10년 전 조회 1,999
10년 전 조회 1,502
10년 전 조회 1,396
10년 전 조회 1,417
10년 전 조회 1,410
10년 전 조회 1,424
10년 전 조회 1,404
10년 전 조회 1,917
10년 전 조회 1,374
10년 전 조회 1,428
10년 전 조회 1,311
10년 전 조회 1,910
10년 전 조회 1,488
10년 전 조회 1,487
10년 전 조회 1,525
10년 전 조회 1,466
10년 전 조회 1,480
10년 전 조회 1,408
10년 전 조회 1,307
10년 전 조회 1,433
10년 전 조회 1,290
10년 전 조회 1,668
10년 전 조회 1,362
10년 전 조회 1,369
10년 전 조회 1,362
10년 전 조회 1,380
10년 전 조회 1,450
10년 전 조회 1,351
10년 전 조회 1,383
10년 전 조회 1,572
10년 전 조회 1,361
10년 전 조회 1,464
10년 전 조회 1,442
10년 전 조회 1,475
10년 전 조회 1,614
10년 전 조회 1,444
10년 전 조회 1,448
10년 전 조회 1,432
10년 전 조회 1,547
10년 전 조회 1,446
10년 전 조회 1,410
10년 전 조회 1,416
10년 전 조회 1,438
10년 전 조회 1,471
10년 전 조회 1,410
10년 전 조회 1,620
10년 전 조회 1,772
10년 전 조회 1,684
10년 전 조회 1,452
10년 전 조회 1,448
10년 전 조회 1,406
10년 전 조회 1,397
10년 전 조회 1,497
10년 전 조회 1,420
10년 전 조회 1,369
10년 전 조회 1,425
10년 전 조회 1,781
10년 전 조회 2,240
10년 전 조회 1,817
10년 전 조회 1,611
10년 전 조회 1,487
10년 전 조회 1,448
10년 전 조회 1,467
10년 전 조회 1,429
10년 전 조회 1,445
10년 전 조회 1,457
10년 전 조회 1,622
10년 전 조회 1,519
10년 전 조회 2,269