Skip to content

Glossary: JavaScript in the Browser

addEventListener

Also written: removeEventListener

Asks the browser to call your handler function each time a given event, such as a click, happens on an element. You pass the function itself, without parentheses.

Where the book teaches it

Related terms

EventHandler (listener)Event object