Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

custom event handler javascript

const event = new Event('build');

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

// Dispatch the event.
elem.dispatchEvent(event);
 
PREVIOUS NEXT
Tagged: #custom #event #handler #javascript
ADD COMMENT
Topic
Name
6+5 =