Testing Page for Keydown, Keyup, and Keypress

It's pretty hard to remember that if all keys are dispatched the keydown, keyup or keypress events. This may be different in different browsers, like Firefox, Chrome, Safari, IE, Opera, etc.

So, I write a simple page for us to test it. There is an extra bonus of this page. We can also use it to know each keyCode of all keys.

page: http://jsfiddle.net/huchengtw/Wk7jR/show/

source: http://jsfiddle.net/huchengtw/Wk7jR/

Tags: