listen for double click javascript code example
Example: javascript listen for double click
const div = document.querySelector('div');
div.addEventListener('dblclick', () => {
alert('You just double clicked the div!');
});
const div = document.querySelector('div');
div.addEventListener('dblclick', () => {
alert('You just double clicked the div!');
});