window onerror code example
Example: what called window.onerror
window.onerror = function (msg, url, lineNo, columnNo, error) {
// ... handle error ...
return false;
}
window.onerror = function (msg, url, lineNo, columnNo, error) {
// ... handle error ...
return false;
}