javascript one time event listener code example
Example: javascript one time event listener
EventTarget.addEventListener("click", function() {
// Do something
}, {once : true});
EventTarget.addEventListener("click", function() {
// Do something
}, {once : true});