DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 308260 - Last Review: December 2, 2013 - Revision: 17.0

On This Page

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

Before you start

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:

Common methods

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: .

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

Collapse this imageExpand this image
Active 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 computer, this may disrupt the display of the webpage. You can reset your Internet Explorer security settings to make sure these features are not blocked. To do this, follow these steps:
  1. Start Internet Explorer.
  2. On the Tools menu, click Internet Options. If you can't see the Tools menu, press Alt to display the menus.
  3. In the Internet Options dialog box, click the Security tab.
  4. Click Default Level.
  5. Click OK.
Note ActiveX controls and Java programs are turned off in the High security level in Internet Explorer.

Collapse this imageExpand this image
A screenshot for step 3, 4 and 5.

Collapse this imageExpand this image

Method 2: Remove all temporary Internet files

Collapse this imageExpand this image

Every time that you open a browser to view a webpage, your computer 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 you open webpages. Periodically clearing the folder might help to resolve the problem.
To remove all the temporary Internet-related files for Internet Explorer 11, Internet Explorer 10, Internet Explorer 9 or Internet Explorer 8
Collapse this imageExpand this image
  1. Start Internet Explorer.
  2. On the Tools menu, click Internet Options. If you can't see the Tools menu, press Alt to display the menus.
  3. Click the General tab.
  4. Under Browsing History, click Delete.
    Collapse this imageExpand this image
    A screenshot for step 3 and 4.
  5. In the Delete Browsing History dialog box, click to select the following check boxes, and then click Delete:
    1. Temporary Internet Files
    2. Cookies
    3. History
    Collapse this imageExpand this image
    A screenshot for this step
  6. Click Close, and then click OK to close the Internet Options dialog box.
Collapse this imageExpand this image
To remove all the temporary Internet-related files for Internet Explorer 7
Collapse this imageExpand this image
  1. Start Internet Explorer.
  2. On the Tools menu, click Internet Options.
  3. Click the General tab.
  4. Under Browsing History, click Delete, and then click Yes when you are prompted to confirm.
  5. In the Delete Browsing History dialog box, under Temporary Internet Files, click Delete Files, and then click Yes when you are prompted to confirm.
  6. Under Cookies, click Delete Cookies, and then click Yes when you are prompted to confirm.
  7. Under History, click Delete History, and then click Yes when you are prompted to confirm.
  8. Click Close, and then click OK to close the Internet Options dialog box.
Collapse this imageExpand this image
To remove all the temporary Internet-related files for Internet Explorer 6
Collapse this imageExpand this image
  1. Start Internet Explorer.
  2. On the Tools menu, click Internet Options. If you can't see the Tools menu, press Alt to display the menus.
  3. Click the General tab.
  4. Under Temporary Internet files, click Settings.
  5. Click Delete Files, and then click OK.
  6. Click Delete Cookies, and then click OK.
  7. Under History, click Clear History, and then click Yes.
  8. Click OK.
Collapse this imageExpand this image
Collapse this imageExpand this image

Method 3: Install the latest service pack and software updates for Internet Explorer

Collapse this imageExpand this image
If you do not have the latest service pack or software upgrades for Internet Explorer already installed, download and install them. They may contain updates that can help resolve the problem.
To install the most current software updates for all versions of Internet Explorer, go Windows Update (http://update.microsoft.com/) .

Additionally, to install Internet Explorer 6 Service Pack 1, click Download Internet Explorer 6 Service Pack 1 (http://www.microsoft.com/downloads/details.aspx?FamilyID=1e1550cb-5e5d-48f5-b02b-20b602228de6&displaylang=en) .
Note Internet Explorer 6 Service Pack 1 is recommended for systems that are running versions of Windows that are earlier than Windows XP.
Collapse this imageExpand this image

Advanced methods

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

Collapse this imageExpand this image
Scripts, ActiveX controls, and Java programs help shape the way a webpage is displayed. If these features are blocked, this may disrupt the display of webpages.

To determine how to make sure that scripts, ActiveX controls, and Java programs are not blocked, see the documentation for the firewall or antivirus program that you use. Then, make any necessary changes. 
Collapse this imageExpand this image

Method 2: Verify that your antivirus program is not set to scan the Temporary Internet Files or the Downloaded Program Files folders

Collapse this imageExpand this image
If an antivirus program interprets a script as a virus, and prevents it from running, a script error may occur. To prevent this, make sure that the antivirus program is not scanning the Temporary Internet Files folder or the Downloaded Program Files folder.

To determine how to prevent the program from scanning these folders, see the documentation for the antivirus program that you use. Then, make any necessary changes. 
Collapse this imageExpand this image

Method 3: Turn off Smooth Scrolling

Collapse this imageExpand this image
If you experience a video display problem, the Smooth Scrolling feature may cause a script to be timed incorrectly. This can generate a script error.

To turn off the Smooth Scrolling feature in Internet Explorer, follow these steps:
  1. Start Internet Explorer.
  2. On the Tools menu, click Internet Options. If you can't see the Tools menu, press Alt to display the menus.
  3. On the Advanced tab, click to clear the Use Smooth Scrolling check box.
  4. Click OK, and then exit Internet Explorer.
Note If this resolves the problem, check whether there is an updated driver available for your video adapter. To obtain an updated driver, contact the manufacturer of your video adapter or of your computer.
Collapse this imageExpand this image

Method 4: Turn off hardware acceleration

Collapse this imageExpand this image
Many applications use hardware acceleration to speed up computer processes. However, if hardware acceleration settings are set incorrectly, they can cause display problems when you view webpages. You can turn off hardware acceleration to see whether this helps resolve the scripting errors. To do this, follow the appropriate steps for your operating system.
Windows 8.1 and Windows 8
Collapse this imageExpand this image
  1. Swipe in from the right edge of the screen, and then tap Search. Or, if you are using a mouse, point to the lower-right corner of the screen, and then click Search.
  2. Type desk.cpl in the search box, and then tap or click desk.cpl.
  3. Click Advanced settings.
  4. Click the Troubleshoot tab, and then move the Hardware Acceleration slider to None.
    Note If the Troubleshoot tab is not present, your graphics card does not support hardware acceleration. Skip this method.
  5. Click OK two times.
  6. Restart the computer.
Collapse this imageExpand this image
Windows 7
Collapse this imageExpand this image
  1. Click Start, type desk.cpl in the Open box, and then press Enter.
  2. Click Advanced settings.
  3. Click the Troubleshoot tab, and then move the Hardware Acceleration slider to None.
    Note If the Troubleshoot tab is not present, your graphics card does not support hardware acceleration. Skip this method.
  4. Click OK two times.
Collapse this imageExpand this image
Windows Vista
Collapse this imageExpand this image
  1. Open the Display item in Control Panel. To do this, click Start
    Collapse this imageExpand this image
    the Start button
    , type desk.cpl in the Start Search box, and then click desk.cpl in the Programs list.
  2. Click Display Settings, and then click Advanced Settings.

    Collapse this imageExpand this image
    User Access Control permission
    If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  3. Click the Troubleshoot tab, and then move the Hardware Acceleration slider to None.
    Note If the Troubleshoot tab is not present, your graphics card does not support hardware acceleration. Skip this method.
  4. Click OK two times.
Collapse this imageExpand this image
Windows XP and Windows Server 2003
Collapse this imageExpand this image
  1. Click Start, type desk.cpl in the Open box, and then press Enter.
  2. Click the Settings tab, and then click Advanced.
  3. Click the Troubleshoot tab, and then move the Hardware Acceleration slider to None.
    Note If the Troubleshoot tab is not present, your graphics card does not support hardware acceleration. Skip this method.
  4. Click OK two times.
Collapse this imageExpand this image
Note If this resolves the problem, check whether there is an updated driver available for your video adapter. To obtain an updated driver, contact the manufacturer of your video adapter or of your computer.
Collapse this imageExpand this image

Method 5: Install the current version of Microsoft DirectX

Collapse this imageExpand this image
DirectX can improve the display of webpages. For information about how to install the current version of Microsoft DirectX, see How to install the latest version of DirectX  (http://support.microsoft.com/kb/179113/ ) .
Collapse this imageExpand this image

More information

Disable script debugging

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)
Collapse this imageExpand this image
  1. Start Internet Explorer.
  2. On the Tools menu, click Internet Options. If you can't see the Tools menu, press Alt to display the menus.
  3. On the Advanced tab, click to clear the Display a notification about every script error box, and then click OK.
    Collapse this imageExpand this image
    A screenshot for this step
Collapse this imageExpand this image
Turn off the Scripting Debugger (for Internet Explorer 6)
Collapse this imageExpand this image
  1. Start Internet Explorer.
  2. On the Tools menu, click Internet Options. If you can't see the Tools menu, press Alt to display the menus.
  3. On the Advanced tab, click to select the Disable script debugging box, and then click OK .
Collapse this imageExpand this image

Symptoms when script error occurs

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.

More information about the cause of this problem

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.

Resolve script errors when you try to print from Internet Explorer

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 (http://windows.microsoft.com/en-us/windows/printer-problems-in-windows-help) 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  (http://support.microsoft.com/kb/2652062/ ) .

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  (http://support.microsoft.com/kb/973479/ ) .
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.

Video:

Collapse this imageExpand this image
uuid=cb2ff237-18e5-4db7-b89c-e1399dbce4b5 VideoUrl=http://aka.ms/fnag5a (http://aka.ms/fnag5a )
Collapse this imageExpand this image

References

810395 (http://support.microsoft.com/kb/810395) Script error when you are using Internet Explorer 6

933873 (http://support.microsoft.com/kb/933873) FIX: You may receive a script error when you try to run a script on a computer that has Internet Explorer 7 installed

Applies to
  • Internet Explorer 11
  • Internet Explorer 10
  • Windows Internet Explorer 9
  • Windows Internet Explorer 8
  • Windows Internet Explorer 7
  • Microsoft Internet Explorer 6.0
Keywords: 
kbresolve kberrmsg kbenv kbprb kbtshoot kbcip kbvideocontent KB308260
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support