+ 4
How can I make an alert box show up by and by after specific intervals of time?
3 Answers
+ 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