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

Trường Phan

New member
Which is the handler method used to invoke when uncaught JavaScript exceptions occur?
A. Onhalt
B. Onerror
C. Both onhalt and onerror
D. Onsuspend
 
Answer: b
Explanation: The onerror handler method can be registered to be invoked when uncaught JavaScript exceptions occur. The onerror event is triggered if an error occurs while loading an external file (e.g. a document or an image).
 

Tìm kiếm

Back
Top