About 2,370 results
Open links in new tab
  1. JavaScript Events - W3Schools

    JavaScript Events Often, when events happen, you may want to do something. When JavaScript is used in HTML pages, JavaScript can react on events. JavaScript lets you execute code when events are …

  2. Introduction to events - Learn web development | MDN

    Dec 19, 2025 · The earliest method of registering event handlers found on the Web involved event handler HTML attributes (or inline event handlers) like the one shown above — the attribute value …

  3. JavaScript Event Handlers – How to Handle Events in JS

    Sep 21, 2020 · You can register event handlers for either phase, bubbling or capturing, by using the function addEventListener(type, listener, useCapture). If useCapture is set to false, the event handler …

  4. Handling Events in JavaScript

    Learn how to perform event handling in JavaScript including HTML Event Handler attributes, DOM Level 0 Event Handlers, and DOM Level 2 Event Handlers.

  5. JavaScript Events - GeeksforGeeks

    Jan 17, 2026 · Learn about JavaScript events, their types, and how to use them to create interactive web applications on GeeksforGeeks.

  6. Event Handling in JavaScript - Tutorial Republic

    JavaScript Events In this tutorial you will learn how to handle events in JavaScript. Understanding Events and Event Handlers An event is something that happens when user interact with the web …

  7. DOM events - Web APIs | MDN - MDN Web Docs

    Nov 7, 2025 · Registering event handlers There are two recommended approaches for registering handlers. Event handler code can be made to run when an event is triggered either by assigning it to …

  8. Handling Events - Eloquent JavaScript

    Each event has a type ("keydown", "focus", and so on) that identifies it. Most events are called on a specific DOM element and then propagate to that element’s ancestors, allowing handlers associated …

  9. JavaScript DOM EventListener - W3Schools

    Add an Event Handler to the window Object The addEventListener() method allows you to add event listeners on any HTML DOM object such as HTML elements, the HTML document, the window …

  10. JavaScript Events: Event Handling - CodeLucky

    Feb 7, 2025 · A comprehensive guide to JavaScript event handling, covering event listeners, event types, capturing, bubbling, and more, with practical examples.