on double click html code example
Example 1: javascript on double click
document.getElementById("myBtn").addEventListener("dblclick", function() {
alert("Hello World!");
});
Example 2: page required double click button
if (!window.getComputedStyle) {
window.getComputedStyle = function(e) {
return e.currentStyle;
};
}
function madison() {
var x = document.getElementById("madison_inv");
if (getComputedStyle(x).display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
Example 3: double click on element using javascript
document.getElementById("something").dblclick();