Code below works in IE, but not in FireFox.
I have unsuccessfully tried all solutions proposed in link below.
Function is invoked when ENTER is pressed. Alert fires if placed in first line of function. But, first if statement is not processed.
Invoked via: onKeyPress="javascript:isEnter();" in control markup.
function isEnter(evnt) {
evnt = (evnt) ? evnt : ((event) ? event : null);
if (evnt) {
var charCode = (evnt.charCode || evnt.charCode == 0) ? evnt.charCode : ((evnt.keyCode) ? evnt.keyCode : evnt.which);
if (charCode == 13) {
//do stuff
}
}
}