Disable Javascript Errors

Glenn Glenn's Blog 4 Comments

Disable Javascript Errors Disable Javascript Errors code corner

Of course all sites need to be thoroughly debugged before they are launched. We test all our sites cross-browser and cross-platform (including iPhone and iPad), but hey perhaps you simply haven’t got the time. To erradicate those pesky Javascript errors from appearing on your browser (and we’re guessing it’s Internet Explorer) simply add the following script to you page:-

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

Hey presto the error disappears!

About the Author
Disable Javascript Errors Disable Javascript Errors 0da77002febbfe28d15144a57bbcc2c9 s 180 d mm r g

Glenn

A highly experienced WordPress Web Developer, Front-end and Back-end Developer & New Media Specialist with extensive knowledge of a wide spectrum of technologies in the Development and Creative Industries built up over a number of years.

  • Amazinggggggg, This is what I´m looking for. Thank 10000000000 times for this agains.

  • Tiffany

    To apply this site wide, would it need to go in the Head or body section

    • Tiffany, this would be best placed in the Header of every page.