How can i catch all the javascript console warnings and perform actions based on different warnings

758 Views Asked by At

I have an html content which when loaded to the webview throws some warnings in console. Is there any way to capture and compare these warnings to perform specific actions for specific warning in javascript.

1

There are 1 best solutions below

3
On

Since console warning do not originate from Javascript itself, but from the browser, Javascript does not interface catching warnings, only errors.