I m trying to get what user type in text box with javascript so i used this
HTML:
JAVASCRIPT: function textTrack(e) { 开发者_StackOverflow中文版 alert(e.keyCode); }
this works fine in firefox but not in IE.
In MSIE use the global event-object:
alert(window.event.keyCode);
精彩评论