How do I overwrite the global Exception handler in javascript so that it becomes the top level handler for all uncaught exceptions?
EDIT: window.onerror didnt work, cod
window.onerror = function(errorMsg, url, lineNumber) { // code to run when error has occured on page }