-
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
- Planning JavaScript 1.9
- also written by Spider84
- Three Small JavaScript Libraries
- also written by Spider84
- Ruby VM in JavaScript
- also written by Spider84
- 3D Javascript Particle Generator
- also written by Spider84
- Using.Js 1.0 Released
- also written by Spider84
- Extended Filtering Using the Grid Filter Plugin
- also published in AjaxLine
- Dromaeo: JavaScript Performance Testing
- also written by Spider84
- JavaScript Library Overview
- also mentions John Resig
- JavaScript Fu Rails Plugin
- also written by Spider84
- Global Domination
- also written by Spider84






Recent Comments
joew » Partial Functions in JavaScript
This is a fascinating article, partial function application is a really useful technique John's ...
pawan » Google
Here are two other similar products which I bookmarked in the past: http://www.maani ...
See all recent comments