Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript emit event

const event = new Event('build');

// Listen for the event.
elem.addEventListener('build', function (e) { /* ... */ }, false);

// Dispatch the event.
elem.dispatchEvent(event);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #emit #event
ADD COMMENT
Topic
Name
5+3 =