MCQ Single Best Answer Easy

QWhich handler method is called when a JavaScript exception is not caught?

ID: #5075 Javascript DOM & Event Handling MCQ 152 views
Question Info
#5075Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Onhalt
  • B Onerror
  • C Both onhalt and onerror
  • D Onsuspend
Correct Answer: Option B

Explanation

It is possible to register the onerror handler method to be called in response to uncaught JavaScript exceptions.
If an error happens while loading an external file, the onerror event is started (e.g. a document or an image).

Share This Question

Challenge a friend or share with your study group.