• Skip to main content
  • Skip to search
  • Skip to select language
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. EventListener
  4. EventListener.handleEvent()
  • Change language

Table of contents

  • Syntax
  • Specifications
  • Browser compatibility

EventListener.handleEvent()

The EventListener method handleEvent() method is called by the user agent when an event is sent to the EventListener, in order to handle events that occur on an observed EventTarget.

Syntax

eventListener.handleEvent(event);

Parameters

event

An Event object describing the event that has been fired and needs to be processed.

Return value

None.

Specifications

Specification
DOM Standard
# dom-eventlistener-handleevent

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Sep 15, 2021, by MDN contributors

Change your language

Related Topics

  1. EventListener
  2. Methods
    1. handleEvent()
  3. Related pages for DOM Events
    1. CompositionEvent
    2. Event
    3. EventTarget
    4. FocusEvent
    5. InputEvent
    6. KeyboardEvent
    7. MouseEvent
    8. MouseScrollEvent
    9. MutationEvent
    10. ProgressEvent
    11. UIEvent
    12. WheelEvent
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2022 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies