Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add event listenner for multiple events

"mousemove touchmove".split(" ").forEach(function(e){
      window.addEventListener(e,mouseMoveHandler,false);
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #add #event #listenner #multiple #events
ADD COMMENT
Topic
Name
5+8 =