Most of the Internet users have experienced annoying JavaScript error messages at some stage while browsing websites on the Internet. You click on a link and unexpectedly a pop-up box appears telling you that there is a runtime error and if you wish to debug – “Do you wish to debug?” For a developer this message is fine, but how an end user can debug the code? People want the Internet to work fast. The moment they get this type of error messages, either they click on the Cancel button, as they don’t know what to do, or they simply leave the web page and browse some other sites.
But why does the computer browser suddenly show JavaScript error? What do those JavaScript errors mean? Well, the most common reason you would get a JavaScript error is if your browser does not support JavaScript or certain JavaScript functions. JavaScript errors may also occur if your browser could not load the particular page in the proper order.
However, if you carefully see a JavaScript error message, you will find that it won’t hurt your computer, but of course it is annoying and quite disturbing. For instance, you want to play a game online, but the game might not work perfectly due to JavaScript problem in your browser settings.
There are two types of JavaScript errors:
- Syntax error – occurs when there is a mistake in the way the code is written, for example, a typo or a missing character.
- Runtime error – occurs when the script is unable to complete its instructions, for example, a specified object cannot be found.
Since the JavaScript error messages can be confusing, you can decide if you’d like to turn off the messages.
To turn off JavaScript error messages in Internet Explorer for Windows:
- Click on the “Tools” menu at the top of the window.
- Select “Internet Options” from the list you see.
- Click on the “Advanced” tab. You’ll see a window with a really long list of check boxes.
- Look for “Display a notification about every script error.” If the check box next to it has a check mark, click on it to clear it out.
- Click on the “OK” button.
|