Subj : Stopping Script Execution To : netscape.public.mozilla.jseng From : "JZ" Date : Wed Sep 24 2003 05:03 pm Lets say we have a script like: for (var i = 0; i < 1000000; i++) { // just a waste of time } I want to be able to stop the execution of this script. I know if the script is calling one of my native C functions, I can return JS_FALSE to stop the script, but how do I stop a script such as the one above that doesn't call a native function? If I close the context/runtime I get an exception. JZ .