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.

Code:

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

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



 
« Return


©2012 Kroll Design    info@KrollDesign.net    781.910.3694
Last modified: 12/31/1969 7:00 PM