MooTools: Find Missing Images

Eine nette Idee habe ich gerade bei David Walsh gesehen:

One of the little known javascript events is the image “onError” event. This event is triggered when an image 404’s out because it doesn’t exist. Broken images can make your website look unprofessional and it’s important to fix broken images as soon as possible. I’ve created a MooTools / PHP script that listens for image errors, triggers an Ajax call to a PHP script, and that PHP script sends an email letting me know about the problem.

Possibly related posts (automatically generated)