devxlogo

Improved JavaScript Error Handling

Improved JavaScript Error Handling

To supress JavaScript error messages, simply place this snippet in the Head section of your Web page:

<SCRIPT language="JavaScript">function dontshowerrormessages() {return true;}window.onerror=dontshowerrormessages;

An even better method is to use the following code: