Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

function to do something every 5 minutes!

Status
Not open for further replies.

MJB3K

Programmer
Jul 16, 2004
524
GB
Hi, how could you write a function that does something every 5 minutes?

for example: like every 5minutes write something 2 a textbox??

any ideas??


Regards,

Martin

Gaming Help And Info:
 
Use setInterval which can call a function at predetermined intervals - you set the time in milliseconds so five minutes would be:
Code:
function doSomething(){
//write text etc...
}
setInterval(doSomething,300000)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top