Francisc
Francisc

Reputation: 80425

Which error events do no trigger window.onerror?

MDN states the following:

some/many error events do not trigger window.onerror, you have to listen for them specifically

That's great, but which ones do not invoke onerror?

Upvotes: 10

Views: 4112

Answers (1)

Shmiddty
Shmiddty

Reputation: 13967

It looks like quirksmode has a good detail of what errors it will and will not catch: http://www.quirksmode.org/dom/events/error.html

If it helps, any error that you specifically throw will be caught.

Upvotes: 5

Related Questions