calling a javascript function every sec

Hi, how do i call a javascript function every sec?
jaxrpcAsked:
Who is Participating?
 
RoonaanCommented:
var myInterval = setInterval('myFunction()', 1000);

Then use below line to stop it once you don't need it any more

clearInterval(myInterval);

-r-
0
 
LakioCommented:
http://www.evolt.org/article/Using_setInterval_to_Make_a_JavaScript_Listener/17/36035/index.html

runner=setInterval(function()', 1000); // to start

clearInterval(runner); // to stop
0
 
FilipsFreelancerCommented:
0
 
LakioCommented:
poo
0
 
LakioCommented:
nice tutorial Filips
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.