1document.getElementById("myBtn").addEventListener("dblclick", function() {
2 alert("Hello World!");
3});
1document.getElementById("myBtn").addEventListener("dblclick", function() {
2 alert("Hello World!");
3});
4document.getElementById("myBtn").dblclick();