What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-03 13:05:08
keydown or keyup event to check character
function isCharacterKeyPress(evt) { if (typeof evt.which == "undefined") { // This is IE, which only fires keypress events for printable keys return true; } else if (typeof evt.which == "number" && evt.w... Add solution -
Javascript 2021-09-10 17:09:02
javascript keypress backspace not working
Try "onkeydown" instead of "onkeypress". KeyPress event is invoked only for character (printable) keys, KeyDown event is raised for all including nonprintable such as Control, Shift, Alt, BackSpace, etc. Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5