Subj : associating an object with a Function object To : netscape.public.mozilla.jseng From : Brian Genisio Date : Fri Mar 05 2004 12:55 pm Hi all, In IE's JS engine, I can write the following: It will execute the click() as if it were associated with the myButton object. With the Mozilla spidermonkey engine, if I do this, clicker is stored as a function object properly, but if executed as shown, the global object is passed in as the object for the function. Is there any way to associate a specific object with a Function object? That way, even if clicker() is executed in the global space, it is handed the myButton JS object, instead? My guess is not, since Mozilla fails with a prototype mismatch error, as I would expect. Is there any way to do what I am talking about? Thanks, Brian .