I'm trying to trigger a function 3 seconds after a click of a button. The code is fairly simple :
button.onclick = setTimeout(yup,3000);
The function name is yup. The first time I click the button, the function occurs, but if I click it again, nothing happens. What am I missing?
Aucun commentaire:
Enregistrer un commentaire