javascript email validate check
5월 15, 2013 in JAVA & JSP
function Email_Check(){ var emailPattern = /[-!#$%&'*+/^_~{}|0-9a-zA-Z]+(.[-!#$%&'*+/^_~{}|0-9a-zA-Z]+)*@[-!#$ %&'*+/^_~{}|0-9a-zA-Z]+(.[-!#$%&'*+/^_~{}|0-9a-zA-Z]+)*/ ; var email = document.frm.emaill.value ; var result = email.match(emailPattern) ;
if(result == null){ alert("이메일을 정확하게 입력해주세요.") ; document.frm.email.value = "" ; document.frm.email.focus() ; return ; }
최근 댓글