Click Here to Create a JavaScript Error
Have you ever re-designed a page, put a bunch of javascripts on it. Finally you get done and open it in a browser only to find out that there's an error on the page. Aaargh! All those annoying popups make for a page no one wants to visit. Well, no more with the Error Disabler. Instead of a popup window or error message, the user can get a less-intrusive notice to e-mail the webmaster or you can make it so that the user never knows the error exists. I recommend placing this script on every page in your website that has javascripts on it. That way, there is no chance that a person could visit your page with an obsure browser (like Opera) and be driven away by alert messages because of an incompatibility.
The source..


<script language="JavaScript1.2">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

function ClearError() {
window.status = "There is a javascript error on this page.  Please e-mail the website owner of this page and inform him of this.";
return true;
}

window.onerror = ClearError;

//-->
</script>

Color coding..


If you would like a message in the statusbar (like I did), you can edit the text in quotes. If you'd just rather have it so the user never knows there's an error, delete this line of code.

Nic's JavaScript Page