Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to trap js errors window.onerror

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

  return false;
}
Source by blog.sentry.io #
 
PREVIOUS NEXT
Tagged: #trap #js #errors
ADD COMMENT
Topic
Name
4+5 =