mrkeck Sharing the Love

26Nov/120

Javascript sleep function

var sleepyTime=10*1000;  //10 seconds
setTimeout(function(){
//In 10 seconds this will alert("I'm awake!");
alert("I'm awake!");
},sleepyTime);
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.