Subj : Re: Create JavaScript-object by Name To : netscape.public.mozilla.jseng From : Jeroen de Borst Date : Wed Oct 13 2004 05:01 pm "Michael Feichtegger" wrote in message news:7076287c.0410130541.1685ff30@posting.google.com... > Hi everybody, > > I want to create JavaScript Objects according to the name passed as > String-parameter. It is like reflection in java. > this works: function getObject( className ) { return eval("new " + className + "()"); } cheers, Jeroen .