Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

window.addeventlistener multiple events

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