browser - window.onerror does not catch all errors -


for reason able catch of console errors except "unsafe javascript attempt access frame url". know why error filtered?

my code:

window.onerror = function(message) { alert(message); return true; }; 

thanks ahead

possible duplicate:

i not sure if that's way detect same origin policy violations, since window.onerror catches runtime js errors (see here).

for cross browser compatibility of error event can check out:

http://www.quirksmode.org/dom/events/error.html


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -