Subj : Asynchronous script execution To : netscape.public.mozilla.jseng From : "Michael Putters" Date : Wed Nov 19 2003 01:32 pm Hello, I've just started embedding SpiderMonkey within my application, and so far, it's great, but I'm wondering how I could do the following : function example() { Windows.MessageBox( 'hello world' ); } Application.onStartup = example; The part about calling the message box or calling the event is not a problem. However, I use JS_ExecuteScript. So I cannot, like.. execute it, THEN call onStartup from the host application. How could I do that? Not sure I'm being clear.. .