Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
This example uses the addEventListener() method to attach a "error" event to an img element.