EventTarget.addEventListener("click", function() { // Do something cool }, {once : true});
function foo() { // do things, then removeEventListener('click', foo); } addEventListener('click', foo);