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

· 17년 전 · 2077

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에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

+
제목 글쓴이 날짜 조회
17년 전 조회 1,302
17년 전 조회 1,033
17년 전 조회 1,118
17년 전 조회 2,920
17년 전 조회 2,458
17년 전 조회 2,039
17년 전 조회 2,039
17년 전 조회 1,792
17년 전 조회 2,238
17년 전 조회 2,010
17년 전 조회 1,982
17년 전 조회 1,871
17년 전 조회 1,207
17년 전 조회 1,823
17년 전 조회 2,226
17년 전 조회 2,296
17년 전 조회 1,637
17년 전 조회 1,506
17년 전 조회 1,354
17년 전 조회 2,573
17년 전 조회 2,669
17년 전 조회 2,066
17년 전 조회 2,412
17년 전 조회 2,717
17년 전 조회 1,320
17년 전 조회 1,186
17년 전 조회 6,320
17년 전 조회 1,170
17년 전 조회 1,621
17년 전 조회 1,771
17년 전 조회 1,094
17년 전 조회 1,186
17년 전 조회 1,886
17년 전 조회 1,518
17년 전 조회 3,616
17년 전 조회 1,202
17년 전 조회 1,906
17년 전 조회 1,164
17년 전 조회 1,379
17년 전 조회 2,358
17년 전 조회 2,010
17년 전 조회 1,032
17년 전 조회 1,035
17년 전 조회 1,088
17년 전 조회 6,043
17년 전 조회 5,847
17년 전 조회 2,023
17년 전 조회 1,018
17년 전 조회 1,113
17년 전 조회 2,078
17년 전 조회 1,509
17년 전 조회 1,155
17년 전 조회 1,182
17년 전 조회 1,125
17년 전 조회 1,039
17년 전 조회 3,954
17년 전 조회 2,159
17년 전 조회 1,615
17년 전 조회 2,759
17년 전 조회 1,465
17년 전 조회 1,148
17년 전 조회 1,170
17년 전 조회 1,238
17년 전 조회 1,123
17년 전 조회 1,242
17년 전 조회 2,392
17년 전 조회 4,181
17년 전 조회 1,183
17년 전 조회 3,943
17년 전 조회 4,093
17년 전 조회 1,209
17년 전 조회 2,173
17년 전 조회 1,617
17년 전 조회 3,209
17년 전 조회 1,351
17년 전 조회 3,594
17년 전 조회 3,385
17년 전 조회 2,557
17년 전 조회 2,931
17년 전 조회 2,621
17년 전 조회 1,939
17년 전 조회 3,308
17년 전 조회 2,618
17년 전 조회 3,517
17년 전 조회 1,144
17년 전 조회 2,247
17년 전 조회 1,317
17년 전 조회 1,184
17년 전 조회 1,059
17년 전 조회 1,043
17년 전 조회 1,416
17년 전 조회 2,855
17년 전 조회 3,250
17년 전 조회 2,996
17년 전 조회 1,877
17년 전 조회 3,992
17년 전 조회 1,404
17년 전 조회 1,117
17년 전 조회 1,231
17년 전 조회 1,111
🐛 버그신고