Computer scienceProgramming languagesJavaScriptInteraction with a browserDOM Events

The "addEventListener" method

Event listening

Report a typo

Fill in the blanks to listen for a mousemove event and set the capture option to true.

Fill in the gaps with the relevant elements
const divElement = document.getElementById('myDiv');

divElement.('', function() {
  console.log('Mouse moved over the div!');
}, { capture:  });

Create a free account to access the full topic