I am designing my website and encountering an issue with the email checker. I can't figure out why it's not working, especially since I have never used JavaScript before. This is what I tried:
var flag=true;
var st = Form1["email"].value.indexOf("@");
if (st == -1)
{
alert("You must insert @ in the email address.");
flag=false;
}
If anyone could provide some assistance, I would greatly appreciate it. Thank you for your help!