Subj : Re: Spidermonkey: How to call a 'static method' from C To : netscape.public.mozilla.jseng From : Sterling Bates Date : Tue May 25 2004 10:59 am Peter Paulus wrote: > ok = JS_CallFunctionName(context, globalObj, "XYZHandler.onOpen", 0, > NULL, &result); The obj parameter is the object containing the function, so you would pass your XYZHandler JSObject in place of globalObj here, then simply call "onOpen". Sterling .