5

I have a function attached to window.onerror

 window.onerror = function(errorMsg, url, line) {
                window.alert('asdf');
                };";

This works fine in firefox, chrome and IE, but it doesn't work in safari. From some digging I read somewhere that safari does not support onerror. The post however was a few years old. Does safari currently support onerror?

If not, is there a workaround?

4

2 に答える 2