Categories
JavaScript Tips & Tutorials

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

By Yang Yang

Hello, I'm Yang. I build online businesses that please people. Want to join in and post some useful articles on Kavoir.com? Shoot me a message.

2 replies on “Stop / Disable JavaScript Error Warnings”

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

Comments are closed.