0
Почему не работает?
2 Antworten
+ 1
Paste this code on js may be it will work
//var btn = document.getElementsByTagName("button")[0];
var x = 0;
function u() {
x++;
document.getElementsByTagName("button")[0].style.backgroundColor = "green";
document.getElementsByTagName("button")[0].style.color = "#87CEFA";
if (x == 2) {
document.getElementsByTagName("button")[0].style.backgroundColor = "red";
document.getElementsByTagName("button")[0].style.color = "white";
x = 0
}
}
+ 1
Thank