Entities Mentioned



  1. John Resig continues to explore the timer objects in JavaScript language, this time he write:

    «ome Archives Projects About Me

    John Resig

    Contact, Subscribe

    Timer and Interval Offset

    I've got another crazy-weird setTimeout/setInterval behavior that you may not know about. However, unlike my previous discovery, this one may actually be useful.

    Observe the following, seemingly innocuous, code:

    var count = 0;

    var interval = setInterval(function(off){

    document.body.innerHTML += " " + off;

    if ( ++count == 10 )

    clearInterval( interval );

    }, 100);

    In particular pay ... (Read Full Article)

    Related Articles

Login to comment.

 
Home All Articles Entities Quotes Comments Login Register Powered by HiveFire