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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timer query

Status
Not open for further replies.

mreynholds

Technical User
Jan 21, 2009
1
GB
Can anyone help me with a function that starts a timer? Crudely, I'm looking for something like:

Code:
function(){
starttimer;
if (timer == 5 seconds){do xyz}
}

Many thanks
 
Code:
setTimeout("MyFunction()",5 * 1000);
function MyFunction(){
     do xyz
}

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top