Hi,
i am giving validation in my asp page on the onkeypress ="return zipcode(this)" of textarea
its running good in Internet explorer.
but it is not working in FIREFOX
any Suggestion , or experience with this kind of problem
thanks in advance
i am giving validation in my asp page on the onkeypress ="return zipcode(this)" of textarea
Code:
function zipcode(e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (event) keycode = event.keyCode;
else if (e) keycode = e.which;
else return true;if( (keycode >= 65 && keycode <= 90) || (keycode >= 97 && keycode <= 122)||(keycode == 96)||(keycode == 39)||(keycode >= 48 && keycode <= 57))
{
return true;
}
else
{
return false;
}
return true;
}
its running good in Internet explorer.
but it is not working in FIREFOX
any Suggestion , or experience with this kind of problem
thanks in advance
Comment