+ 1

Please help me!

I want the alert box to appear when the user clicks the button and then continue to appear even when the user is not clicking the button. https://code.sololearn.com/W24rk68jB4Oz/?ref=app Please help me finish the task!

27th Sep 2017, 12:17 PM
B.D
B.D - avatar
1 Odpowiedź
+ 2
So, you could use a loop, an infinite one would work, but then your code would stop doing stuff written behind it. function buttonClicked (){ while(true)alert ("Alert!"); } //The following part won't be called alert ("Not called");
27th Sep 2017, 12:26 PM
Jonas Schröter
Jonas Schröter - avatar