element.addEventListener("mousemove", function(event) { console.log(event); }); //Calls function every time the mouse moves over 'element'