anybody knows an easy way to display an alert after each 50 seconds in jquery (infinite loop)
+2
A:
Use setInterval(), like this:
setInterval(function() {
alert('hi!');
}, 50000);
Note this is just JavaScript, no jQuery library needed.
I assume you have a purpose, not actually alerting? :) Please let that be the case!
Nick Craver
2010-06-24 11:12:52
:) no I just want to piss ppl off with alerts popping up all the time :D
Omu
2010-06-24 11:14:51
@Omu - well played sir =P
Nick Craver
2010-06-24 11:17:31
I am sure thats one site I would disable javascript on instantly... or just exit.
BerggreenDK
2010-06-24 13:37:20