1var someEventHander=function(event){
2 console.log("do something");
3}
4
5//add listener
6document.getElementById("someid").addEventListener('click',someEventHander);
7
8//remove listener
9document.getElementById("someid").removeEventListener('click',someEventHander);
1// type function
2element.removeEventListener("mousedown", handleMouseDown)
3// full type list available here: https://developer.mozilla.org/en-US/docs/Web/Events
1target.removeEventListener(type, listener[, options]);
2target.removeEventListener(type, listener[, useCapture]);