double click event javascript code example
Example 1: javascript on double click
document.getElementById("myBtn").addEventListener("dblclick", function() {
alert("Hello World!");
});
Example 2: double click on element using javascript
document.getElementById("something").dblclick();