const div = document.querySelector('div'); div.addEventListener('dblclick', () => { alert('You just double clicked the div!'); });