Edit This Code:
See Result »
This example uses the HTML DOM to assign an "onerror" event to an img element.
Result: