home / experts / javascript / column26 |
|
Netscape Navigator 4.06 and 4.5 changed the behavior of the JavaScript console. In previous versions, when you type The dialog window in earlier versions became annoying to most people, especially for those users who did not find the messages that helpful. In Navigator 4.06 and 4.5, you can direct the HTML page errors to the JavaScript console. Since the console is normally hidden, errors are hidden as well from the user, unless he or she opens the console. You can set a preference to automatically open the console when a JavaScript error occurs. The error message is the same, whether it is displayed in a popup window or the JavaScript console, and looks like:
Currently, JavaScript errors are printed in English. International versions will be supported in the future. You can set the JavaScript console's preferences in the JavaScript preference file,
You can revert back to the dialog box for error display, by inserting the following line in the JavaScript preference file:
|
| ||||||||||||||||||||
Created: September 28, 1998
Revised: September 28, 1998
URL: http://www.webreference.com/js/column26/console.html