Skip to content

Events

  • An event is something that happens in the browser that JavaScript can detect and respond to.

Examples

  • A user clicks a button.
  • A user presses a key.
  • The mouse moves.
  • A form is submitted.
  • A page finishes loading.
  • A network request completes.
  • An animation ends.