[Javascript] looped var

Steve Clay sclay at ufl.edu
Thu Apr 20 10:15:22 CDT 2006


Thursday, April 20, 2006, 10:39:10 AM, Mckinney, Lori K wrote:
> objA.onclick = new Function ("alert(" + intI + ")" );

This should work, but from what I understand new Function (like eval) must
be compiled on the spot, so there's a (however slight) performance hit.
http://userjs.org/help/tutorials/efficient-code

Steve
-- 
http://mrclay.org/




More information about the Javascript mailing list