Hide error on page

Learn more here!

Are you familiar with this image?
error on page Hide error on page

While certain javascripts will work in Firefox or other browsers like Opera, Safari or Chrome, that may not be the case with Internet explorer 7, usualy 6.

It can be hidden, so IE won’t display it. In order to hide it, we need to use a few lines of javascript

If you don’t want to display “Error on page” warning, use the following code:

<script type="text/javascript">
function handleError()
{
return true;
}
window.onerror = handleError;
</script>

Just past the above code into the head section of your website, or right after the beginning of the body tag and it will automatically do the trick for you.

Tags:

One Response to “Hide error on page”
  1. Hey there this is google here.. lvoe the site by the way.. keep up the good work

Leave a Reply