Answers for "why does HTML require double click when it first loads"

2

page required double click button

if (!window.getComputedStyle) {
    // Fallback for obsolete IE
    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";
    }
}
Posted by: Guest on December-14-2020

Code answers related to "why does HTML require double click when it first loads"

Browse Popular Code Answers by Language