Subj : Re: question with JS_EvaluateScript To : lyg From : Brendan Eich Date : Thu Mar 11 2004 10:21 pm lyg wrote: > It must have a better solution. I just want to know the return value of > script code; return statements are not legal outside of functions. Just let the last statement in the script be an expression statement. Its value will be returned via *rval. /be .