Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

store reference of event listener inside a element

element.addEventListener('click',element.fn=function fn() {
    //  Event Code
}, false);
element.removeEventListener('click',element.fn, false);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #store #reference #event #listener #element
ADD COMMENT
Topic
Name
4+2 =