Multiple choice

Which of the following event occurs when an image does not load properly?

  1. onabort

  2. onerror

  3. onunload

  4. onblur

  5. onimageunload

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The onerror event triggers when an image does not load properly. It can be written as onerror="error handling code"