title: Does Safari support javascript window.onerror?
body: <p>I have a function attached to window.onerror</p>
  
  <pre><code> window.onerror = function(errorMsg, url, line) {
                  window.alert('asdf');
                  };";
  </code></pre>
  
  <p>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?</p>
  
  <p>If not, is there a workaround?</p>