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.

Comments 4

    1. Post
      Author
    1. Post
      Author

Leave a Reply

Your email address will not be published. Required fields are marked *


*