+ 4
How can I make an alert box show up by and by after specific intervals of time?
3 odpowiedzi
+ 10
I believe you'll be interested with the setTimeout function in JS. 😉
+ 4
Do this:
function sayHi() {
alert(“Hi!”);
}
setInterval(sayHi, 5000);
Replace 1000 with how often you want it to say, in milliseconds, so 5000 milliseconds = 5 seconds, and so on.
0
Thank you