I have Mozilla Firefox 4.0 Beta 12
I have written a small javascript to detect ' and avoid it from getting typed in textbox. This works in IE but not on mozilla. Any suggestion ??? If that is not possible then any other logic to achieve same results ??
function DetectIllegalKeys()
{
var code = event.keyCode;
if (code == 222)
{
event.returnValue = false;
}
}