Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] looped var


  • From: sclay at ufl.edu (Steve Clay)
  • Subject: [Javascript] looped var
  • Date: Thu Apr 20 10:15:28 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/