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;

Hey presto the error disappears!

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


A highly experienced Web Designer / Web Developer (Webflow, WordPress, Weebly & Custom), Front-end / 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.