addEventListener("click", function () { code example Example: eventlistener javascript element .addEventListener( event, function, useCapture );