Javascript Tutorial Key Event

Key Event

  1. Check if Alt key is pressed during the event in JavaScript
  2. Check if Shift key is pressed during the event in JavaScript
  3. Check if the Control key is pressed during the event in JavaScript
  4. Convert the key code from key event to character in JavaScript
  5. Get key event target element id in JavaScript
  6. Get the key char from the key event in JavaScript
  7. Get the key code from key event in JavaScript
  8. Get the key event target or event source in JavaScript
  9. Listen to body on key down event in JavaScript
  10. Listen to key down event for TextArea in JavaScript
  11. Listen to key down event for input text element in JavaScript
  12. Listen to key press event for TextArea in JavaScript
  13. Listen to key up event for TextArea in JavaScript