• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 622
  • Last Modified:

calling a javascript function every sec

Hi, how do i call a javascript function every sec?
0
jaxrpc
Asked:
jaxrpc
  • 3
1 Solution
 
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
 
FilipsCommented:
0
 
LakioCommented:
poo
0
 
LakioCommented:
nice tutorial Filips
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now