Subj : Re: Stopping scripte execution To : netscape.public.mozilla.jseng From : Jun Kim Date : Thu Dec 02 2004 12:51 am When will be the good place to use JS_SetBranceCallback? Before or after initializing the global objects? Before executing the script? Brendan Eich wrote in news:41AB4E34.2030700@meer.net: > Jun Kim wrote: >> Is there any API that stops the process of executing script? >> Like the way that IE stops the script when pressing "stop browsing" >> button. I can't seem to find. >> >> Regard, Jun > > > Returning false from the branch callback (set by JS_SetBranchCallback) > will stop the looping script. > > /be > .