Loading ...
Sorry, an error occurred while loading the content.
 

valid email js code

Expand Messages
  • mehbarzegar
    hi, please take a look to this code&tell me if you see soething wrong here: function c() {
    Message 1 of 1 , Sep 6, 2003
      hi,
      please take a look to this code&tell me if you see soething wrong
      here:

      <script language="JavaScript">
      function c()
      {
      f=document.form1.emailf.string.indexOf("@")
      if (f=-1)
      {
      alert("Please enter a valid email")
      }
      }
      </script>
      form1(the name of my form)emailf(the name of text which is inputed)

      then in body I put onBlur("c()") on the emailf field.

      can you tell me why it doesn't work:((
    Your message has been successfully submitted and would be delivered to recipients shortly.