How to troubleshoot script errors in Internet Explorer

Summary

When you receive script errors, webpages may not be displayed or work correctly in Internet Explorer. The script errors may have various causes. See More information about the cause of this problem.
The methods that are listed in this article may help you to troubleshoot the script errors that are caused by files or settings on your computer.

Additionally, to resolve script errors that occur when you try to print from Internet Explorer, click here.

Resolution

Step 1: Make sure that script errors occur on multiple webpages
If the only sign of this problem is the error message, and if the websites are working, you can probably ignore the error. Also, if the problem occurs on one or two webpages, the problem may be caused by those pages. If you decide to ignore the errors, you can disable script debugging.

Note If this problem occurs on more than one or two sites, do not disable script debugging.
Step 2: Make sure that the problem is caused by files or settings on your computer
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 does not occur when you view the webpage through another user account, in another browser, or on another computer, the problem may be caused by files or settings on your computer. In this situation, follow the methods in this article to resolve this problem:
After you complete each method, try to open a webpage on which you previously received a scripting error. If you do not receive the error, the problem is resolved.

Additionally, you may also reference Video: How to troubleshoot script errors in Internet Explorer.
Method 1: Verify that Active Scripting, ActiveX, and Java are not being blocked by Internet Explorer
Method 2: Remove all temporary Internet files
Method 3: Install the latest service pack and software updates for Internet Explorer
This section is intended for more advanced computer users. It includes five methods to help resolve the problem.
Method 1: Verify that Active Scripting, ActiveX, and Java are not blocked by an antivirus program or by a firewall
Method 2: Verify that your antivirus program is not set to scan the Temporary Internet Files or the Downloaded Program Files folders
Method 3: Turn off Smooth Scrolling
Method 4: Turn off hardware acceleration
Method 5: Install the current version of Microsoft DirectX

More Information

Turn off notification about every script error in Internet Explorer (for Internet Explorer 11, Internet Explorer 10, Internet Explorer 9, Internet Explorer 8 and Internet Explorer 7)
Turn off notification about every script error in Internet Explorer (for Internet Explorer 11, Internet Explorer 10, Internet Explorer 9, Internet Explorer 8 and Internet Explorer 7)
Turn off the Scripting Debugger (for Internet Explorer 6)
Turn off the Scripting Debugger (for Internet Explorer 6)
When script error occurs in Internet Explorer, you may receive error messages that resemble the following:
Problems with this Web page might prevent it from being displayed properly or functioning properly. In the future, you can display this message by double-clicking the warning icon displayed in the status bar.
If you click Show Details, you may see details about the error that resemble the following:
Line: <Line_Number>
Char: <Character_Number>
Error: <Error_Message>
Code: 0
URL: http://Webserver/page.htm
A Runtime Error has occurred.
Do you wish to Debug?
Line: <Line_Number>
Error: <Error_Message>

The following warning message may also appear in the Internet Explorer Status bar:
Done, but with errors on page.
This problem occurs because the HTML source code for the webpage does not work correctly with client-side script such as Microsoft JScript or Microsoft Visual Basic script. This problem may occur for one or more of the following reasons:
  • A problem exists in the HTML source code of the webpage.
  • Active 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, can be configured to block Active scripting, ActiveX controls, or Java programs.
  • Antivirus software is configured to scan your "Temporary Internet Files" or "Downloaded Program Files" folders.
  • The scripting engine on your computer is corrupted or outdated.
  • Internet-related folders on your computer are corrupted.
  • Your video card drivers are corrupted or outdated.
  • The DirectX component on your computer is corrupted or outdated.
Note Server-side scripts such as 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 messages in Internet Explorer, but they may create a webpage that does not display or work correctly. The troubleshooting information in this article applies to client-side script errors. Contact the administrator of the web server if you suspect that a problem affects a server-side script.
Generally, outdated printer drivers can cause problems when you print from Internet Explorer. To resolve these problems, try updating to the latest printer driver for your printer.

To resolve this issue, follow the steps in Fix printer problems in Windows to 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. You may have to visit the manufacturer's website to locate and download the latest printer driver for your printer.

Also, if you experience this issue in Internet Explorer 9, try the methods in You receive a script error and are unable to print from Internet Explorer 9 .

Additionally, if you cannot print or preview a webpage in Internet Explorer, see Unable to print or view the print preview of a webpage in Internet Explorer .
Script error message when you print from Internet Explorer
If you try to print a webpage in Internet Explorer, you may receive a script error that resembles the following:
An error has occurred in the script on this page.
Line : <Line_Number>
Char: <Character_Number>
Error : <Error_Message>
Code: 0
URL: res/ieframe.dll/preview.js.

References

810395Script error when you are using Internet Explorer 6

Properties

Article ID: 308260 - Last Review: Aug 5, 2016 - Revision: 1

Feedback