🔰input event

🚧 under construction

browsereventtype ⟩ input

Elements like <input> and <textarea>, fire "input" events whenever the user changes their content. To get the actual content that was typed, it is best to directly read it from the focused field. 👉 Eloquent JS ⟩ Form Fields

Using key events to figure out what is being typed is problematic.

  • virtual keyboard on Android phones doesn’t fire key events.

  • input method editor (IME) may use multiple key strokes to create characters.

Last updated