title: How to prevent errors to be logged in browser console with onError html event?
body: <p>I have something like this:</p>
  
  <pre><code>&lt;img src="/images/kjh5kh.jpg" onerror="myScript" /&gt;
  </code></pre>
  
  <p>myScript is replacing the images, which were not found.
  It works great, but i don't want to see browser's console full of errors.
  So, how could i catch the errors and prevent them from being logged in console?</p>