Computer scienceProgramming languagesJavaScriptInteraction with a browserDOM Events

The "addEventListener" method

Theory

dblclick

Report a typo

Which of these methods can register a dblclick event for events occurring in an HTML document?

A)

document.addEventListener("click", function() {
  // body
});

B)

document.addEventListener('dblclick', function() {
  // body
});

C)

document.addListener("dblclick", function() {
  // body
});

D)

document.addEventListener(dblclick() {
  // body
};

E)

document.addEventListener("dblclick", function() {
  // body
});

F)

document.addEventListener("dblclick" function() {
  // body
});
Select one or more options from the list
___

Create a free account to access the full topic