Subj : Spidermonkey JS question To : netscape.public.mozilla.jseng,comp.lang.javascript From : ikoch@redsegura.com (I?igo Koch) Date : Tue Nov 04 2003 10:19 am Hi, I need to create an object that at the same time has a string value: foo = "string1"; foo.bar = "string2"; It must be possible since browsers have a lot of these cases: location = "str"; location.href = "str"; etc.. Thank you in advance for any light on this problem, regards, Iņigo Koch .