# Changing the JavaScript time-out value on Internet Explorer 8

Internet Explorer 8 keeps track of the number of JavaScript lines executed. After a fixed value, the browser issues an error message, prompting the user to decide whether he or she would like to continuing running the script. Because the Discovery Framework is a rich Internet application that leverages JavaScript heavily in all components, it can trigger this error during normal usage.

Microsoft describes this issue in Knowledge Base Article 175500 and specifies a fix. More detail can be found in the Knowledge Base Article (http://support.microsoft.com/kb/175500). The following is a condensed version of Microsoft’s fix for the Internet Explorer 8 issue.

Important: If you intend to run the Discovery Framework on Internet Explorer 8, Endeca strongly recommends that you apply the fix outlined in this topic.

To change the script time-out value:

1. Using a registry editor such as Regedt32.exe, open this key:

       HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles

   Note: If the Styles key is not present, create a new key that is called Styles.
2. Create a new DWORD value called "MaxScriptStatements" under this key, and set the value to the desired number of script statements. You will have to try different values for your application environment, but the suggested starting point is a DWORD value of 0x1CFFFFF.
   Note: You can turn off this Internet Explorer 8 feature using a DWORD value of 0xFFFFFFFF.