Try it yourself »
Definition and Usage
The onerror event is triggered if an error occurs while loading an external file (e.g. a document or an image).
The onerror event is supported in all major browsers.
onerror is Supported by the Following HTML Tags:
Thank You For Helping Us!
Your message has been sent to W3Schools.