To change this time-out value in Internet Explorer 4.0 through 8, follow these steps:
To use Registry Editor (for example, Regedt32.exe), open this key:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\styles
Note If the styles item does not exist, create a new item named "Styles".
Under this key, create a new DWORD value named "Maxscriptstatements" and set this value to the desired number of script statements. If you are unsure of how much this value needs to be set, you can set its DWORD value to 0xFFFFFFFF to avoid dialog boxes.
By default, this entry does not exist. For Internet Explorer version 4 or later, if this item has not been added, the default threshold for the Timeout dialog box is limited to 5,000,000 sentences.
Because the Internet Explorer 4.0 to 8 timeout is based on the number of script statements executed, the Timeout dialog box does not appear during ActiveX control or database access delays. An infinite loop in the script will still be the instrumented object.
Error message: "Script for current page causes Internet Explorer to run slowly"