Vidyalelo
JavaScript · Q3

Document Object Model And Event Handling

Programming · JavaScript · question 3

Q3

Which is the handler method used to invoke when uncaught JavaScript exceptions occur?

A.
Onhalt
B.
Onerror
Answer
C.
Both onhalt and onerror
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The onerror handler method can be registered to be invoked when uncaught JavaScript exceptions occur.