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

· 10년 전 · 1384

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,616
10년 전 조회 1,560
10년 전 조회 2,025
10년 전 조회 1,567
10년 전 조회 1,518
10년 전 조회 1,784
10년 전 조회 1,566
10년 전 조회 1,593
10년 전 조회 1,457
10년 전 조회 1,707
10년 전 조회 1,534
10년 전 조회 1,418
10년 전 조회 1,537
10년 전 조회 2,184
10년 전 조회 1,514
10년 전 조회 1,498
10년 전 조회 1,587
10년 전 조회 1,634
10년 전 조회 2,104
10년 전 조회 1,687
10년 전 조회 1,546
10년 전 조회 1,446
10년 전 조회 1,479
10년 전 조회 1,576
10년 전 조회 1,533
10년 전 조회 1,595
10년 전 조회 1,485
10년 전 조회 1,623
10년 전 조회 1,492
10년 전 조회 1,474
10년 전 조회 1,425
10년 전 조회 2,084
10년 전 조회 1,594
10년 전 조회 1,487
10년 전 조회 1,496
10년 전 조회 1,494
10년 전 조회 1,499
10년 전 조회 1,474
10년 전 조회 1,995
10년 전 조회 1,446
10년 전 조회 1,511
10년 전 조회 1,387
10년 전 조회 1,988
10년 전 조회 1,568
10년 전 조회 1,558
10년 전 조회 1,612
10년 전 조회 1,532
10년 전 조회 1,560
10년 전 조회 1,466
10년 전 조회 1,385
10년 전 조회 1,497
10년 전 조회 1,389
10년 전 조회 1,754
10년 전 조회 1,450
10년 전 조회 1,461
10년 전 조회 1,441
10년 전 조회 1,467
10년 전 조회 1,530
10년 전 조회 1,425
10년 전 조회 1,458
10년 전 조회 1,650
10년 전 조회 1,447
10년 전 조회 1,545
10년 전 조회 1,527
10년 전 조회 1,537
10년 전 조회 1,685
10년 전 조회 1,535
10년 전 조회 1,536
10년 전 조회 1,513
10년 전 조회 1,629
10년 전 조회 1,536
10년 전 조회 1,492
10년 전 조회 1,487
10년 전 조회 1,532
10년 전 조회 1,562
10년 전 조회 1,502
10년 전 조회 1,693
10년 전 조회 1,836
10년 전 조회 1,766
10년 전 조회 1,539
10년 전 조회 1,541
10년 전 조회 1,489
10년 전 조회 1,479
10년 전 조회 1,574
10년 전 조회 1,488
10년 전 조회 1,452
10년 전 조회 1,513
10년 전 조회 1,850
10년 전 조회 2,308
10년 전 조회 1,882
10년 전 조회 1,702
10년 전 조회 1,557
10년 전 조회 1,514
10년 전 조회 1,538
10년 전 조회 1,516
10년 전 조회 1,523
10년 전 조회 1,521
10년 전 조회 1,694
10년 전 조회 1,603
10년 전 조회 2,352