Removes a previously attached event callback function from an HTMLElement.
off
(callback)let callback = function(e) { console.log(e); } let foo document.getElementById('foo'); foo.on('click', callback); // attaches the callback function … foo.off('click', callback); // removes the function again.