Thread
:
Javascript
View Single Post
04-02-2006, 09:02 AM
#
4
Salathe
Status:
Community Archaeologist
Join date:
Jul 2004
Location:
Scotland
Expertise:
Software Development
Software:
vim, PHP
Posts:
3,820
iTrader:
25
/ 100%
Jonny gets the gold star! You can set an event to happen in the future using the
setTimeout
(or repeatedly, with
setInterval
) function.
Code:
// Alerts 'Hello World' after two seconds window.setTimeout("alert('Hello World')", 2000)
Salathe
View Public Profile
Visit Salathe's homepage!
Find More Posts by Salathe