Return to Snippet

Revision: 40476
at February 2, 2011 22:00 by fengelz


Initial Code
//The most common example you'll find
setTimeout("alert('timed out');"},5000);

//The best solution as this gidevs you full flexibility using 'closure'
setTimeout(function()
{
alert("timed out");
},5000);

Initial URL

                                

Initial Description

                                

Initial Title
Setting a timer in javascript

Initial Tags
javascript, js

Initial Language
JavaScript