How to detect internal JavaScript errors in a browser?

We are currently reporting all JavaScript errors. However, some errors seem to be related to the browser (plugin, etc.). Like this:

Error: Error calling method in NPObject!

Line: 0

Script: http://www.lookr.com/lookout/1329030315-Giglio-Porto


How can I ignore those internal errors that are not directly related to the website?


  • Ignoring all errors with line 0 also seems unacceptable, as embedded JavaScript errors are also ignored (which is undesirable)

Thank you in advance for your suggestions.

+6
source share
1 answer

This is the closest you can get ( onerror )

 <html> <body> <script> window.onerror = function(e) { alert('Error'); console.log(e); } show('Error'); // show is not defined </script> </body> </html> 
+1
source

All Articles