The onerror Event

In this lesson, we will meet the onerror event in detail. Let's begin!

We'll cover the following

Depending on how your browser is configured, unhandled errors (exceptions that have not been handled by the code) are displayed. For example, Internet Explorer displays the NegativeNumberUsed exception specified in the previous code snippet as shown below:

Get hands-on with 1400+ tech skills courses.