Subj : Property returns "Object" object that contains custom objects To : netscape.public.mozilla.jseng From : digdog Date : Mon Aug 22 2005 05:07 am Hi, I had some difficulties on returning the property of a custom JavaScript Object. Assuming I had a JSObject ObjA that was created using JS_NewObject with my own JSClass ObjA_class. And ObjA_class has one property getObjBs that will return a JavaScript standard "Object" object. And I want this "Object" object has properties that names are same as each ObjB object's property "id" , and the value of each properties is ObjB object. e.g. There are 2 ObjB objects: student1 and student2. The ObjB has a propperty "id": student1.id = "john" student2.id = "mary" When I use: ObjA.getObjBs.john it will return student1 object. ObjA.getObjBs.mary it will return student2 object. And I want to know if there's any way to make my ObjA's property "getObjBs" can return like that. thanks, digdog .