Block JavaScript Errors

We can have a function with return true and use it on window.onerror.Thus when the browser encounters a JavaScript error it returns true and block the error begin displayed.

function blkError()
{
  return true;
}
window.onerror = blkError;

Popularity: 1% [?]

Related posts:

  1. Add a Row Dynamically using JavaScript
  2. JavaScript to Validate Email Format
  3. set focus on textbox value at the end
  4. Refresh the Window
You can leave a response, or trackback from your own site.

Leave a Reply

Designed by: Business Web Hosting | Thanks to Buy Icons, travel tips and Used Cars