This example uses the HTML DOM to assign an "onerror" event to an img element.
The image could not be loaded.