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

· 10년 전 · 1061

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,240
10년 전 조회 1,173
10년 전 조회 1,644
10년 전 조회 1,141
10년 전 조회 1,150
10년 전 조회 1,389
10년 전 조회 1,184
10년 전 조회 1,215
10년 전 조회 1,069
10년 전 조회 1,324
10년 전 조회 1,160
10년 전 조회 1,072
10년 전 조회 1,113
10년 전 조회 1,815
10년 전 조회 1,149
10년 전 조회 1,163
10년 전 조회 1,148
10년 전 조회 1,267
10년 전 조회 1,757
10년 전 조회 1,348
10년 전 조회 1,160
10년 전 조회 1,093
10년 전 조회 1,141
10년 전 조회 1,227
10년 전 조회 1,141
10년 전 조회 1,213
10년 전 조회 1,132
10년 전 조회 1,295
10년 전 조회 1,151
10년 전 조회 1,128
10년 전 조회 1,067
10년 전 조회 1,716
10년 전 조회 1,211
10년 전 조회 1,157
10년 전 조회 1,175
10년 전 조회 1,163
10년 전 조회 1,194
10년 전 조회 1,172
10년 전 조회 1,675
10년 전 조회 1,120
10년 전 조회 1,195
10년 전 조회 1,078
10년 전 조회 1,659
10년 전 조회 1,246
10년 전 조회 1,235
10년 전 조회 1,279
10년 전 조회 1,222
10년 전 조회 1,230
10년 전 조회 1,165
10년 전 조회 1,062
10년 전 조회 1,200
10년 전 조회 1,067
10년 전 조회 1,371
10년 전 조회 1,121
10년 전 조회 1,131
10년 전 조회 1,122
10년 전 조회 1,153
10년 전 조회 1,190
10년 전 조회 1,113
10년 전 조회 1,133
10년 전 조회 1,323
10년 전 조회 1,131
10년 전 조회 1,240
10년 전 조회 1,185
10년 전 조회 1,227
10년 전 조회 1,327
10년 전 조회 1,190
10년 전 조회 1,160
10년 전 조회 1,182
10년 전 조회 1,274
10년 전 조회 1,176
10년 전 조회 1,134
10년 전 조회 1,160
10년 전 조회 1,166
10년 전 조회 1,198
10년 전 조회 1,143
10년 전 조회 1,352
10년 전 조회 1,517
10년 전 조회 1,403
10년 전 조회 1,174
10년 전 조회 1,171
10년 전 조회 1,130
10년 전 조회 1,145
10년 전 조회 1,251
10년 전 조회 1,185
10년 전 조회 1,113
10년 전 조회 1,175
10년 전 조회 1,528
10년 전 조회 1,973
10년 전 조회 1,563
10년 전 조회 1,373
10년 전 조회 1,352
10년 전 조회 1,181
10년 전 조회 1,173
10년 전 조회 1,198
10년 전 조회 1,157
10년 전 조회 1,182
10년 전 조회 1,195
10년 전 조회 1,355
10년 전 조회 1,279