Subj : [rhino] constructing functions from a code snippet To : netscape.public.mozilla.jseng From : Michael Gratton Date : Mon Dec 08 2003 01:14 pm Guys, Is there a better way to construct an instance of Function when you only have the body of the function than what I'm doing currently, which is: function = cxt.compileFunction(scope, "function (arg1) {" + script + "}", ...); This is for executing something like a HTML inline event handler. Any suggestions? Thanks! Mike. .