The removeEventListener() method removes event handlers that have been attached with the addEventListener() method:
element.removeEventListener("mousemove", myFunction);
Everything (eventname, function, and options) in the removeEventListener must match the one set when adding the even...