Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove all event listener from elemet

var old_element = document.getElementById("btn");
var new_element = old_element.cloneNode(true);
old_element.parentNode.replaceChild(new_element, old_element);
 
PREVIOUS NEXT
Tagged: #remove #event #listener #elemet
ADD COMMENT
Topic
Name
4+4 =