Subj : Re: how to assign to a dynamic global variable? To : netscape.public.mozilla.jseng From : Michael Daumling Date : Wed Aug 31 2005 07:10 pm For global functions, "this" is the global object, so you can do: function assignToGlobal (name, value) { this [name] = value; } .