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 Respuesta
+ 1
function notouchy() {
var btn = document.getElementById("button");
if(btn.innerHTML != "NO TOUCHY")
btn.innerHTML = "NO TOUCHY";
else
btn.innerHTML = "You WON!"
}