addevent js code example Example: eventlistener javascript element .addEventListener( event, function, useCapture );