Subj : Re: [SpiderMonkey]Simple Code To : netscape.public.mozilla.jseng From : Brendan Eich Date : Fri Jul 02 2004 11:49 am Jens Thiele wrote: >> char * script="document.write('hello');"; >>The JS_EvaluateScript function returns JS_FALSE. Do you see why? > > > yes the document object does not exist And the embedding program should use JS_SetErrorReporter, so you can see the "document is not defined" error. /be .