I\'m finding that the delete key doesn\'t fire the keypress event in Chrome, while other keys work. The problem doesn\'t occur in Firefox, just in chrome, why? Here
keypress
Use keydown or keyup instead, it captures the delete key (as well as others that keypress doesn't, see http://www.quirksmode.org/js/keys.html)
keydown
keyup
document.addEventListener('keydown', function (e) { console.log(e); }, false);