Stop / Disable JavaScript Error Warnings

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! 🙂

2 thoughts on “Stop / Disable JavaScript Error Warnings”

  1. It’s the single best javascript tip I’ve found with regards to end user experiences….lol… Thanks for sharing!

Comments are closed.

Scroll to Top