Edit This Code:
See Result »
This example uses the addEventListener() method to attach a "error" event to an img element.
Result: