Description: Illustrates the JavaScript syntax for the onerror Event.
Syntax: Object.onerror="yourjavascriptcode()" – Allows you to know when error event occurs.