Skip to content

Commit

Permalink
Fix link to removed EventListener interface
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg committed Jan 10, 2024
1 parent 87f5cd4 commit cc280e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions files/en-us/web/api/eventtarget/addeventlistener/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ but the target may be any object that supports events (such as {{domxref("IDBReq
> - In contrast to using an `onXYZ` property, it gives you finer-grained control of the phase when the listener is activated (capturing vs. bubbling).
> - It works on any event target, not just HTML or SVG elements.
The method `addEventListener()` works by adding a function, or an object that implements
{{domxref("EventTarget.addEventListener", "EventListener")}}, to the list of event listeners for the specified event type
The method `addEventListener()` works by adding a function, or an object that implements a `handleEvent()` function, to the list of event listeners for the specified event type
on the {{domxref("EventTarget")}} on which it's called. If the function or object is already in the list of event listeners for this target, the function or object is not added a second time.

> **Note:** If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an `addEventListener` call, the second function will _also_ be added to the list of event listeners for that target.
Expand Down

0 comments on commit cc280e5

Please sign in to comment.