I have a web page that need validation of input data ..
and i have used onBlur event that calls ValidateField
that checks whether the length of entered data in that
field is greater than certain value(say 3 chars)..
<INPUT NAME="FirstName" TYPE=TEXT SIZE=15 onBlur="validateField(this,3);" >
function ValidateField(field,len)
{
if (field.length < len)
{
alert("Field must be at least " + minLen + "
characters long!");
field.focus();
}
}
But, the problem is, the message keeps coming
infinitely if less characters, say 2 chars is entered..
It goes into infinite message display and it
Is it a browser problem ?
thanks
sarath
