Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript listen for double click

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

div.addEventListener('dblclick', () => {
	alert('You just double clicked the div!');
});
 
PREVIOUS NEXT
Tagged: #javascript #listen #double #click
ADD COMMENT
Topic
Name
9+1 =