특정 이메일 입력 금지및 이메일 유효성 검사

· 17년 전 · 2286

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>

[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
17년 전 조회 1,489
17년 전 조회 1,237
17년 전 조회 1,311
17년 전 조회 3,118
17년 전 조회 2,666
17년 전 조회 2,225
17년 전 조회 2,244
17년 전 조회 1,986
17년 전 조회 2,431
17년 전 조회 2,205
17년 전 조회 2,163
17년 전 조회 2,060
17년 전 조회 1,376
17년 전 조회 2,010
17년 전 조회 2,419
17년 전 조회 2,502
17년 전 조회 1,825
17년 전 조회 1,689
17년 전 조회 1,551
17년 전 조회 2,777
17년 전 조회 2,851
17년 전 조회 2,262
17년 전 조회 2,604
17년 전 조회 2,915
17년 전 조회 1,507
17년 전 조회 1,364
17년 전 조회 6,528
17년 전 조회 1,363
17년 전 조회 1,817
17년 전 조회 1,971
17년 전 조회 1,279
17년 전 조회 1,360
17년 전 조회 2,069
17년 전 조회 1,705
17년 전 조회 3,823
17년 전 조회 1,392
17년 전 조회 2,107
17년 전 조회 1,354
17년 전 조회 1,586
17년 전 조회 2,574
17년 전 조회 2,213
17년 전 조회 1,212
17년 전 조회 1,224
17년 전 조회 1,292
17년 전 조회 6,239
17년 전 조회 6,052
17년 전 조회 2,229
17년 전 조회 1,204
17년 전 조회 1,312
17년 전 조회 2,287
17년 전 조회 1,685
17년 전 조회 1,340
17년 전 조회 1,363
17년 전 조회 1,309
17년 전 조회 1,242
17년 전 조회 4,156
17년 전 조회 2,373
17년 전 조회 1,812
17년 전 조회 2,960
17년 전 조회 1,655
17년 전 조회 1,333
17년 전 조회 1,368
17년 전 조회 1,416
17년 전 조회 1,315
17년 전 조회 1,416
17년 전 조회 2,595
17년 전 조회 4,399
17년 전 조회 1,367
17년 전 조회 4,134
17년 전 조회 4,284
17년 전 조회 1,397
17년 전 조회 2,365
17년 전 조회 1,817
17년 전 조회 3,406
17년 전 조회 1,550
17년 전 조회 3,793
17년 전 조회 3,585
17년 전 조회 2,766
17년 전 조회 3,128
17년 전 조회 2,829
17년 전 조회 2,144
17년 전 조회 3,501
17년 전 조회 2,834
17년 전 조회 3,715
17년 전 조회 1,327
17년 전 조회 2,445
17년 전 조회 1,510
17년 전 조회 1,371
17년 전 조회 1,250
17년 전 조회 1,235
17년 전 조회 1,612
17년 전 조회 3,053
17년 전 조회 3,440
17년 전 조회 3,193
17년 전 조회 2,080
17년 전 조회 4,196
17년 전 조회 1,599
17년 전 조회 1,312
17년 전 조회 1,429
17년 전 조회 1,297