+ 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!
1 Respuesta
+ 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");