Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript call function from event handler es6

elem.addEventListener('click', (event) => ((that) => {
	console.log(event, that);
})(this));
Source by www.mediaevent.de #
 
PREVIOUS NEXT
Tagged: #javascript #call #function #event #handler
ADD COMMENT
Topic
Name
6+7 =