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

· 10년 전 · 1168

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,351
10년 전 조회 1,297
10년 전 조회 1,770
10년 전 조회 1,286
10년 전 조회 1,280
10년 전 조회 1,500
10년 전 조회 1,301
10년 전 조회 1,343
10년 전 조회 1,177
10년 전 조회 1,443
10년 전 조회 1,262
10년 전 조회 1,190
10년 전 조회 1,254
10년 전 조회 1,914
10년 전 조회 1,276
10년 전 조회 1,276
10년 전 조회 1,283
10년 전 조회 1,391
10년 전 조회 1,863
10년 전 조회 1,456
10년 전 조회 1,286
10년 전 조회 1,208
10년 전 조회 1,242
10년 전 조회 1,347
10년 전 조회 1,255
10년 전 조회 1,328
10년 전 조회 1,232
10년 전 조회 1,418
10년 전 조회 1,259
10년 전 조회 1,231
10년 전 조회 1,178
10년 전 조회 1,833
10년 전 조회 1,325
10년 전 조회 1,245
10년 전 조회 1,270
10년 전 조회 1,263
10년 전 조회 1,288
10년 전 조회 1,252
10년 전 조회 1,768
10년 전 조회 1,219
10년 전 조회 1,292
10년 전 조회 1,178
10년 전 조회 1,758
10년 전 조회 1,340
10년 전 조회 1,354
10년 전 조회 1,392
10년 전 조회 1,333
10년 전 조회 1,347
10년 전 조회 1,268
10년 전 조회 1,169
10년 전 조회 1,300
10년 전 조회 1,167
10년 전 조회 1,507
10년 전 조회 1,224
10년 전 조회 1,238
10년 전 조회 1,219
10년 전 조회 1,245
10년 전 조회 1,305
10년 전 조회 1,211
10년 전 조회 1,228
10년 전 조회 1,427
10년 전 조회 1,235
10년 전 조회 1,340
10년 전 조회 1,301
10년 전 조회 1,317
10년 전 조회 1,439
10년 전 조회 1,305
10년 전 조회 1,268
10년 전 조회 1,280
10년 전 조회 1,398
10년 전 조회 1,281
10년 전 조회 1,235
10년 전 조회 1,265
10년 전 조회 1,274
10년 전 조회 1,325
10년 전 조회 1,255
10년 전 조회 1,481
10년 전 조회 1,622
10년 전 조회 1,523
10년 전 조회 1,290
10년 전 조회 1,280
10년 전 조회 1,249
10년 전 조회 1,241
10년 전 조회 1,361
10년 전 조회 1,285
10년 전 조회 1,232
10년 전 조회 1,283
10년 전 조회 1,631
10년 전 조회 2,101
10년 전 조회 1,671
10년 전 조회 1,499
10년 전 조회 1,469
10년 전 조회 1,309
10년 전 조회 1,298
10년 전 조회 1,315
10년 전 조회 1,276
10년 전 조회 1,289
10년 전 조회 1,313
10년 전 조회 1,481
10년 전 조회 1,377