<p>I am developing a site that makes extensive use of JavaScript (jQuery). I regularly get the IE 'Stop running this script?' error dialog when I try to close the browser. </p>

<p>I'm guessing the problem occurs because the site is a single page that uses AJAX, so there are no postbacks to reset IE's count of commands executed.</p>

<p>Client-side registry hacking is not an option.</p>

<p>Does anyone know a way to get around this error?</p>

<p>UPDATE: The page has a number (~10) interval timers that poll continually on 30 or 60 second  intervals.</p>

Do you by chance use a window.onunload handler? If you do, you might check that you don't have an infinite loop in there.
To check, at the bottom of your javascript do:
```
```
window.onunload = null;
```
```
and test again.