본문 바로가기

Dev./Front-end

JavaScript Event KeyCode Test Page

JavaScript Event KeyCode Test Page

JavaScript Event KeyCode Test Page

Input:

onKeyDown onKeyPress onKeyUp
event.keyCode
event.charCode
event.which

Notable Gotchas

  • Firefox and onKeyDown vs. onKeyPressed
  • Firefox and keyCode vs. charCode
  • Enter key and onKeyPress on Firefox vs. IE