Tuesday, August 19, 2008

How to Ignore JavaScript errors

Sometimes when you are working on a page and want to publish it and you have some JavaScript errors, but you don't have time to debug it, you can put the following code in order to ignore the JavaScript errors:
<script language="javascript">
    function stoperror() {
        return true;
    window.onerror = stoperror();


  1. thank you tha#s nice
    but why can't we just say this:

  2. I agree with the first anon replier. Why are you using a function to process nothing? If all your function does is return a value, just use the value.

  3. Wow all I can say is that you are a great writer! Where can I contact you if I want to hire you?

  4. Is there anymore information you can give on this subject. It answers a lot of my questions but there is still more info I need. I will drop you an email if I can find it. Never mind I will just use the contact form. Hopefully you can help me further.

    - Robson

  5. Very nice to read such "old" posts!

    This topic, like the little that you can see, they feel accompanied us at the beginning