Quote
Place this simple script in the of the page to block JavaScript errors in the page. We've found this useful with page material from sources other than our own that may contain errors (ad banners, automated news feeds, etc.).
Code
<script language="JavaScript">
// Source: CodeFoot.com
function blockError(){return true;}
window.onerror = blockError;
</script>