Welcome to WebmasterWorld Guest from 18.208.187.169

Forum Moderators: open

Message Too Old, No Replies

Time Delay Before Continuing Code

     
1:56 pm on Dec 10, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 1, 2002
posts:83
votes: 0


Hi

Does anyone knoe how to add a very simple time delay of 20 seconds or so before the code continues...

Any help is really appreciated

Walker

2:09 pm on Dec 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 25, 2002
posts:3185
votes: 0


Hi walker,

What type of code? HTML? JavaScript? Something else?

2:11 pm on Dec 10, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 1, 2002
posts:83
votes: 0


sorry good point, Javascript
2:21 pm on Dec 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 20, 2002
posts:889
votes: 0


You could use the setTimeout() function to call a function after a delay of 20 seconds
2:26 pm on Dec 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 25, 2002
posts:3185
votes: 0


setTimeout( "myFunction()" , 20000); will run myFunction() after 20seconds.

HTH