mercredi 10 août 2016

auto double click with only javascript

I want to make an autoDoubleClick function by only javascript.Example:

    var btn = document.getElementById("btn");
    btn.addEventListener("double",function(e){
        alert("Some thing");
    });

when we call function

autoDoubleClick(btn) 

so it will auto double click. Can you give me some ideal ??? (only javascript no jquery)




Aucun commentaire:

Enregistrer un commentaire