Return to Kroll Design home page

JavaScript Tutorials

« Return

setTimeout function

The setTimeout function executes the specified JavaScript statement after the specified number of milliseconds. It only executes the statement one time.


<script type="text/javascript">
setTimeout("alert('See no evil.')", 1000);
setTimeout("alert('Hear no evil.')", 4000);
setTimeout("alert('Speak no evil.')", 9000);

Output: 3 "alert messages" (pop-ups)

« Return

©2012 Kroll Design    781.910.3694
Last modified: 12/31/1969 7:00 PM