I have incorporated this code (found on Tek-Tips but I can't remember who originated it) into my form and it works well if an invalid address has been entered:
str=form1.Email.value;
filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str)!=true)
{
alert("Please input a valid email address!"
event.returnValue=false;
return
What would be the best way to manipulate this code to allow for a totally blank field? I have tried several things with no success.
Thanks!
Christine
str=form1.Email.value;
filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str)!=true)
{
alert("Please input a valid email address!"
event.returnValue=false;
return
What would be the best way to manipulate this code to allow for a totally blank field? I have tried several things with no success.
Thanks!
Christine