Javascript has not implemented the error Solution

Source: Internet
Author: User

No error message is displayed in firebug. When you open IE, you will encounter a "not implemented error". No errors have been found in the past based on the location indicated in IE. It seems that the error location of IE is not accurate. In desperation, Google search finally found the location where the error was located. The original error lies in window. onload = myfunc (var1, var2); window of IE. the onload function does not support parameter calling. Although the function will still be executed, an error will occur, affecting subsequent script execution. The following are two simple and useful solutions:
Write another function, such
Function loadfunc (){
Myfunc (var1, var2)
},
Then
Window. onload = loadfunc;
Use anonymous functions.
Onload = function () {myfunc (var1, var2 )}
Enough. There are two methods.

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.