+ 4

How can I make an alert box show up by and by after specific intervals of time?

12th Jun 2018, 11:44 AM
B.D
B.D - avatar
3 Respostas
+ 10
I believe you'll be interested with the setTimeout function in JS. 😉
12th Jun 2018, 12:23 PM
Zephyr Koo
Zephyr Koo - avatar
+ 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.
13th Jun 2018, 6:25 AM
Rowsej
Rowsej - avatar
0
Thank you
13th Jun 2018, 11:30 AM
B.D
B.D - avatar