4 ms·
why hasn't anyone suggested this: els[i].addEventListener('click', new Function("","alert("+i+");"),false); it works fine and it's much shorter and easier to r
by smysore 16y ago
why hasn't anyone suggested this: els[i].addEventListener('click', new Function("","alert("+i+");"),false);
it works fine and it's much shorter and easier to read than nested function declarations