javascript keypress backspace not working

Solutions on MaxInterview for javascript keypress backspace not working by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "javascript keypress backspace not working"
Ida
19 Jul 2019
1Try "onkeydown" instead of "onkeypress".
2
3KeyPress event is invoked only for character (printable) keys, 
4KeyDown event is raised for all including nonprintable such as Control, 
5Shift, Alt, BackSpace, etc.