I have something like this:
<img src="/images/kjh5kh.jpg" onerror="myScript" />
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?