0
Buttons
How do I make it so my âDONT TOUCHâ button after it says âNO TOUCHINGâ is there a way for me to add a third click where it says something like âSTOP TOUCHINGâ? https://code.sololearn.com/WV3xa7Ps1v2q/?ref=app
1 RĂ©ponse
+ 1
function notouchy() {
var btn = document.getElementById("button");
if(btn.innerHTML != "NO TOUCHY")
btn.innerHTML = "NO TOUCHY";
else
btn.innerHTML = "You WON!"
}