Use the following line to keep the browser or console from warning the user of your program errors.
window.onerror = function( ) { return true; }
That’s it! :)
Related Posts
- JavaScript: Confirmation / Warning before Leaving or Navigating Away from a Page
- PHP: Read from Keyboard – Get User Input from Keyboard Console by Typing
- PHP: Change Error Reporting Level | Different PHP Error Types
- Portable functions for manipulating browser window
- PHP, JavaScript: Stop and prevent others from framing your site or web page

{ 2 comments… read them below or add one }
It’s the single best javascript tip I’ve found with regards to end user experiences….lol… Thanks for sharing!
Ya, it is. JavaScript errors would simply defame a website in trust and competence to serve.