I have this function:
function ValidateIntKey( )
{
var Key;
var CharKey;
Key = event.keyCode;
alert(Key);
//CharKey = String.charCode At(Key);
alert(String.fr omCharCode(Key) );
CharKey = String.fromChar Code(Key)
if (!isInteger(Cha rKey))
{
alert("no integer");
}
}
Where i have "alert("no integer");" i want to make the keyCode null so
that it doesn't reach the textbox this function is attached to. How
do i do this? I tried:
event.keyCode = 0; but this did not work. Any other ideas?
function ValidateIntKey( )
{
var Key;
var CharKey;
Key = event.keyCode;
alert(Key);
//CharKey = String.charCode At(Key);
alert(String.fr omCharCode(Key) );
CharKey = String.fromChar Code(Key)
if (!isInteger(Cha rKey))
{
alert("no integer");
}
}
Where i have "alert("no integer");" i want to make the keyCode null so
that it doesn't reach the textbox this function is attached to. How
do i do this? I tried:
event.keyCode = 0; but this did not work. Any other ideas?
Comment