[Javascript] Defining the Name of a Variable at Runtime

gregory.john.toland at census.gov gregory.john.toland at census.gov
Wed Feb 6 12:48:35 CST 2002


Is it possible to define the name of a variable at runtime?  I would like
to create variables a1...a100 like....

eval( "a" + i ) = new Image( 214, 39 );

Is this possible?

Gregory J Toland
Sr. Systems Architect
CHM, Inc.
(301) 457-8058
tolan002 at census.gov




More information about the Javascript mailing list