解决IE弹框提示“是否停止运行此脚本”问题

有少数情况因为js处理内容较多,系统计算标红和刷新页面较慢,IE可能会弹框提示“是否停止运行此脚本”,若想要继续,点击“否”即可。并同时按照下面的设置更改一下注册表,即可解决弹框问题。

http://support.microsoft.com/kb/175500#top问题解决来源

修改:
1.打开注册表,找到下位置HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerStyles
2.找有"MaxScriptStatements"键名的注册项,没有则创建,值可以设置为"0xFFFFFFFF"

以上修改,ie8测试可行。

原文:

To change this time-out value in Internet Explorer versions 4.0 through 8, follow these steps:

    1. Using a Registry Editor such as Regedt32.exe, open this key:
      HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerStyles

      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. If you are not aure about which value you need to set this to, you can set it to a DWORD value of 0xFFFFFFFF to avoid the dialog box.
原文地址:https://www.cnblogs.com/svennee/p/4670055.html