JS Hint: There is not enough storage space to complete this operation solution

Source: Internet
Author: User

Test script:

The code is as follows Copy Code

<button onclick=test () >test </button>
<SCRIPT>
function Test () {
ShowModalDialog ("Javascript:alert (navigator.useragent);");
}
</SCRIPT>

Today finally found the real reason is that the contents of the registration table has been modified, as to what software has been modified please check the registration table of the items you can. The specific registry location is two places:

The code is as follows Copy Code

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\user Agent

And

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\user Agent


Found mine on my machine.

The code is as follows Copy Code
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\user Agent\Post Platform

The key value for a string is changed to: EMBEDDEDWB 14.52 FROM:HTTP://WWW.111CN.NET/EMBEDDEDWB 14.52 is because the key name is too long, so the error is caused by JavaScript fetching, Check whether the key names under these two locations have such a situation, after the modification, restart the machine, you can solve the problem


JS itself out of a problem

JSTree0.9.8 version-IE "Not enough storage space to complete this operation" after multiple refreshes


The root of Evil:

The Add_sheet method in _lib.js

The code is as follows Copy Code
if (document.createstylesheet) {document.createstylesheet (URL);} Cause: You can create up to StyleSheet objects with the createStyleSheet method. See here


More than this limit on the report of this error, shit, completely farfetched ....


Solutions
Directly comment out the above method and use the standard method to create the style.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.