Answers for "javascript listen for double click"

1

javascript listen for double click

const div = document.querySelector('div');

div.addEventListener('dblclick', () => {
	alert('You just double clicked the div!');
});
Posted by: Guest on February-12-2021

Code answers related to "javascript listen for double click"

Code answers related to "Javascript"

Browse Popular Code Answers by Language