Documentation and Books

Recent site activity

Web Development‎ > ‎JavaScript‎ > ‎

How to suppress error messages in JavaScript?

Add the following part in a JavaScript block:

  function silentErrorHandler() {
return true;
}

window.onerror = silentErrorHandler;