Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #keypress #backspace #working
ADD COMMENT
Topic
Name
2+8 =