Guest User

Untitled

a guest
Sep 17th, 2015
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script language="javascript">
  2.  
  3. function checkEmail() {
  4.  
  5.     var email = document.getElementById('email');
  6.     var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  7.  
  8.     if (!filter.test(email.value)) {
  9.     alert('Please provide a valid email address');
  10.     email.focus;
  11.     return false;
  12.  }
  13. }</script>
RAW Paste Data