Internet Explorer Troubleshooting
An error has occurred in the script on this page
When opening a page within Internet Explorer a dialog box is displayed titled ‘Internet Explorer Script Error’ displaying the message:
An error has occurred in the script on this page.
Do you want to continue running scripts on this page?
What the error means:
Possible Causes and Remedies:
- The problem may be related not with the site but with the contents
of Internet Explorer’s cache.
Internet Explorer may be using some old files from its cache instead of retrieving newer versions from the site. Try deleting all of Internet Explorers temporary files (Tools > Internet Options ... > Delete Files ) and then refresh the page view. If the error persists then it is a fault with the page.
If the page is yours (i.e. one that your are developing or one for which you are the webmaster responsible) then its up to you to debug the problem. Otherwise ignore the error (select ‘No’ to debug) and see if you can carry on.
This error can be disabled:
- Within Internet Explorer select ‘Tools’, ‘Internet Options’.
- Select the ‘Advanced’ tab.
- Tick the option ‘Disable script debugging’ (under ‘Browsing’).
- For the setting change to take effect close down all Internet Explorer windows and then restart Internet Explorer.
- This can be caused by malware on your PC. If the problem seems
to affect a large number of sites and not just the occasional site
then it may well be caused by malware.
This tip was kindly provided by Catriona Chaplin: "For anyone getting that Runtime error popup all the time despite changing their Disable script debugging setting and the existing MS tips, my recommendation is: Try a complete scan with SpyBot (or similar) first."
These notes have been tested with Windows Vista and Internet Explorer 8.
About the author: Brian Cryer is a dedicated software developer and webmaster. For his day job he develops websites and desktop applications as well as providing IT services. He moonlights as a technical author and consultant.