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.
Glossary: JavaScript in the Browser
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.