cara menjebak js kesalahan window.onerror

window.onerror = function (msg, url, lineNo, columnNo, error) {
  // ... handle error ...

  return false;
}
Famous Fly