reda40
2012-03-27, 16:33
ما هو المشكل
مع العلم ان المتصفح فاير فوكس
<html> <body> <form name="form1"> <input type="text" value="e-mail" name="mail"> <input type="button" value="check" name="button" onclick="check (); "> </form> <script type="text / javascript"> function check () { var useremail = document.form1.mail.value ; var x= useremail.index of( "@" ) ; if(x == -1) { alert(useremail+"not correct !!" ) } else { alert ("thanks"); } } </script> </body> </html>
مع العلم ان المتصفح فاير فوكس
<html> <body> <form name="form1"> <input type="text" value="e-mail" name="mail"> <input type="button" value="check" name="button" onclick="check (); "> </form> <script type="text / javascript"> function check () { var useremail = document.form1.mail.value ; var x= useremail.index of( "@" ) ; if(x == -1) { alert(useremail+"not correct !!" ) } else { alert ("thanks"); } } </script> </body> </html>