Code, javascriptJune 28, 2007 6:59 pm
Javascript Delay
Sean McManus wrote a nice routine to implement a delay in JavaScript code:
function pausecomp(millis)
{
var date = new Date();
var curDate = null;
do { curDate = new Date(); }
while(curDate-date < millis);
}
The URI to TrackBack this entry is: http://jdev.blogsome.com/2007/06/28/javascript-delay/trackback/
No comments yet.
RSS feed for comments on this post.
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>