Quantcast
Channel: JavaScript global event mechanism - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by Ionuț G. Stan for JavaScript global event mechanism

$
0
0

Does this help you:

<script>window.onerror = function() {    alert("Error caught");};xxx();</script>

I'm not sure how it handles Flash errors though...

Update: it doesn't work in Opera, but I'm hacking Dragonfly right now to see what it gets. Suggestion about hacking Dragonfly came from this question:

Mimic Window. onerror in Opera using javascript


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>