Forum Moderators: open

Message Too Old, No Replies

How do i repeat a javascript every 2 seconds

         

MrGecko

12:26 pm on Aug 15, 2007 (gmt 0)

10+ Year Member



How do i repeat a javascript every 2 seconds
maybe i can use a while loop and have a delay for 2 seconds in it and than after the 2 seconds it runs the code below and repeats
can some one tell me how i can do some thing like that

Arno_Adams

2:20 pm on Aug 15, 2007 (gmt 0)

10+ Year Member



Hi,

Try setInterval()

HTH, AA

MrGecko

2:51 pm on Aug 15, 2007 (gmt 0)

10+ Year Member



Thanks that worked

[edited by: MrGecko at 2:54 pm (utc) on Aug. 15, 2007]