I tired to write a function to check key code with javascript. It's working fine for firefox but not IE. Does anyone know what is going wrong with my code? Please see below code for more details.
function textCheck(e)
{
var e = window.event || e
alert("CharCode value: "+e.charCode)
alert("Character: "+String.fromCharCode(e.charCode))
}