@Sergey_SmirnovJan 27.2003 — #Ofter, it happens because of using recursion when browser invokes function from the same function or something like that.
When function is invoked the return address is put on stack. if function does not return result and called again and again the stack grows and reachs the limit.
Actually, browser operates with javascripts in multi-threads mode, so the problem can be more complex than described above. A specially, if javascript function downloads something from server.
Of couse, the source code is required to find a right solution in your case.