+ 4

HELP WITH JS

i want to put on my code... if he press 10 checkbox = alert box appear

26th Dec 2016, 3:21 PM
Carlos Castro
Carlos Castro - avatar
1 Odpowiedź
+ 5
//JavaScript: var check = 0 function CheckMethod(){ check += 1; if(check == 10) { alert("Button Pressed 10 times!"); } } HTMl: <button onclick="CheckMethod();"></button>
26th Dec 2016, 6:50 PM
Paulo Castro
Paulo Castro - avatar