How to troubleshoot script errors in Internet Explorer

Important

The Cyberspace Explorer xi desktop awarding will be retired and become out of support on June 15, 2022 (for a list of what's in scope, see the FAQ). The same IE11 apps and sites you use today tin can open in Microsoft Edge with Cyberspace Explorer mode. Acquire more than hither.

This article solves the trouble that the webpage tin't be displayed when a script error occurs in Internet Explorer.

Original product version: Internet Explorer eleven, Net Explorer 10, Cyberspace Explorer 9
Original KB number: 308260

Summary

When you lot receive script errors, webpages may not be displayed or work correctly in Net Explorer.

When script errors occur in Internet Explorer, you may receive following error messages:

Issues with this Web page might prevent it from being displayed properly or functioning properly. In the futurity, you lot tin display this message past double-clicking the warning icon displayed in the status bar.

If y'all select Show Details, you may see detailed data about the following errors:

              Line:<LineNumber> Char:<CharacterNumber> Error:<ErrorMessage> Lawmaking: 0 URL: http://Webserver/page.htm A Runtime Error has occurred. Do you wish to Debug? Line:<LineNumber> Error:<ErrorMessage>                          

The following warning bulletin may also appear in the Internet Explorer Condition bar:

Done, but with errors on folio.

This problem occurs because the HTML source code for the webpage doesn't piece of work correctly with client-side script, such every bit Microsoft JScript or Microsoft Visual Basic script. This problem may occur for ane or more than of the following reasons:

  • A problem exists in the HTML source code of the webpage.
  • The spider web page is using newer technologies that are non supported past Internet Explorer.
  • The spider web page is using client-side visual bones script - that is deprecated.
  • Agile scripting, ActiveX controls, or Java programs are blocked on your computer or on the network. Internet Explorer or another program, such as antivirus programs or firewalls, tin be configured to block Active scripting, ActiveX controls, or Java programs.
  • Antivirus software is configured to scan your Temporary Internet Files or Downloaded Programme Files folders.
  • Internet-related folders on your reckoner are corrupted.
  • Your video card drivers are corrupted or outdated.

Note

Server-side scripts such every bit Visual Basic scripts in Active Server Pages (ASP) run on a web server. Script errors that occur because of server-side script failures do not produce error letters in Internet Explorer, only they may create a webpage that does not display or piece of work correctly. The troubleshooting data in this article applies to client-side script errors. Contact the administrator of the web server if you lot doubtable that a problem affects a server-side script.

These methods listed in this article may help you troubleshoot the script errors that are caused by files or settings on your figurer. For quick visual instructions about how to troubleshoot script errors in Cyberspace Explorer, watch this video:

Resolution

Note

Microsoft encourages y'all update your organisation with the latest windows update available. For more information about Windows Update, see FAQ.

Footstep 1: Brand sure that script errors occur on multiple webpages

If the but sign of this problem is the error message, and the websites are working, you can probably ignore the error. Likewise, if the trouble occurs on one or two webpages, the problem may exist caused past those pages. If you decide to ignore the errors, you can disable script debugging. To do it, select the Disable script debugging (Internet Explorer) checkbox in Internet Options > Avant-garde > Browsing settings.

Annotation

If this problem occurs on more than than one or two sites, don't disable script debugging.

Step two: Make sure that the problem is caused by files or settings on your reckoner

To narrow down the source of the problem, use another user account, another browser, or another computer to view the webpages that triggered the script error.

If the script error doesn't occur when you lot view the webpage through another user account, in another browser, or on another reckoner, the problem may be caused by files or settings on your computer. In this state of affairs, follow the methods in this commodity to resolve this problem:

After you complete each method, effort to open a webpage on which you previously received a scripting error. If you don't receive the error, the problem is resolved.

Method ane: Verify that Active Scripting, ActiveX, and Java are not being blocked past Internet Explorer

Agile scripting, ActiveX, and Java are all involved in shaping the way that information is displayed on a webpage. If these features are blocked on your estimator, information technology may disrupt the display of the webpage. You tin can reset your Net Explorer security settings to brand sure these features aren't blocked. To do it, follow these steps:

  1. Start Cyberspace Explorer.

  2. On the Tools menu, select Net Options. If you can't see the Tools carte, press Alt to display the menus.

  3. In the Internet Options dialog box, select the Security tab.

  4. Select Default Level > OK.

    Notation

    ActiveX controls and Java programs are turned off in the High security level in Internet Explorer.

    Screenshot of the Internet Options Window. Under the Security tab, select Default Level.

Method 2: Remove all temporary Internet files

Every time that you lot open a browser to view a webpage, your reckoner stores a local copy of that webpage in a temporary file. If the size of the temporary Internet files folder becomes too large, some display problems may occur when yous open up webpages. Periodically clearing the binder might help to resolve the trouble.

To remove all the temporary Internet-related files for Cyberspace Explorer.

  1. Start Internet Explorer.

  2. On the Tools bill of fare, select Internet Options. If you can't see the Tools bill of fare, press Alt to display the menus.

  3. Select the General tab.

  4. Under Browsing History, select Delete.

    Screenshot of the Internet Options Window. Under the Geneal tab, in Browsing history section, Delete button is highlighted.

  5. In the Delete Browsing History dialog box, select the following check boxes, and then select Delete:

    • Temporary Internet Files
    • Cookies
    • History

    Screenshot of the Delete Browsing History Window. Temporary Internet Files, Cookies, and History options are checked.

  6. Select Close, and then select OK to close the Internet Options dialog box.

Method iii: Install the latest software updates for Windows

To stay up to date, select the Start button > Settings > Update & Security > Windows Update, and then select Check for updates.

Avant-garde debugging

This department is intended for more avant-garde figurer users. It includes three methods to aid resolve the problem.

Method one: Verify that active scripting, activeX, and coffee are non blocked by an antivirus program or past a firewall

Scripts, ActiveX controls, and Java programs help shape the way a webpage is displayed. If these features are blocked, it may disrupt the brandish of webpages.

To make sure that scripts, ActiveX controls, and Coffee programs aren't blocked, run into the documentation for the firewall or antivirus program that y'all use. Then make whatsoever necessary changes.

Method 2: Verify that your antivirus program isn't set to scan the Temporary Internet Files or the Downloaded Program Files folders

If an antivirus program interprets a script equally a virus, and prevents it from running, a script error may occur. To prevent this effect, make sure that the antivirus plan isn't scanning the Temporary Internet Files binder or the Downloaded Program Files folder.

To preclude the program from scanning these folders, see the documentation for the antivirus program that yous use. Then brand any necessary changes. For adding exclusions to Windows Security in Windows 10 environments review, Add an exclusion to Windows Security.

Method 3: Plough off Shine Scrolling

If you experience a video display problem, the Smoothen Scrolling characteristic may cause a script to be timed incorrectly. It can generate a script error. To turn off the Shine Scrolling characteristic in Net Explorer, follow these steps:

  1. Start Net Explorer.
  2. On the Tools carte du jour, select Internet Options. If you can't see the Tools menu, press Alt to display the menus.
  3. On the Avant-garde tab, clear the Use Smooth Scrolling bank check box.
  4. Select OK, and and then exit Internet Explorer.

Note

If this resolves the problem, check whether there is an updated commuter available for your video adapter. To obtain an updated driver, contact the manufacturer of your video adapter or of your reckoner.

More data

Procedure to turn off notification most every script fault in Internet Explorer

  1. Commencement Net Explorer.

  2. On the Tools menu, select Cyberspace Options. If y'all tin't come across the Tools menu, press Alt to brandish the menus.

  3. On the Avant-garde tab, clear the Display a notification about every script mistake box, then select OK.

    Screenshot of Internet Options window. Under the Advance tab, Display a notification about every script error check box is cleared.

Troubleshooting Script Errors when press from Internet Explorer

If you try to print a webpage in Internet Explorer, you may receive a script fault that resembles the following example:

              An error has occurred in the script on this folio. Line:<LineNumber> Char:<CharacterNumber> Error:<ErrorMessage> Code: 0 URL: res/ieframe.dll/preview.js.                          

By and large, outdated printer drivers tin can cause problems when you impress from Internet Explorer. To resolve these problems, endeavour updating to the latest printer driver for your printer.

To resolve this issue, follow the steps in Fix printer problems in Windows 7 and Windows 8.1 to bank check your printer and update the printer driver.

Important

In some cases, an updated version of the driver may not be available through Windows Update. Yous may have to visit the manufacturer'southward website to locate and download the latest printer driver for your printer.

If you lot can't print or preview a webpage in Net Explorer, see the following article:

Unable to impress or view the print preview of a webpage in Net Explorer.