WebBrowser2 - Receiving events from actions in browser

Is it possible to receive events from embedded browser? I’d like to do a login via a webview for the plugin,
so I would need to capture a succes/error response.

How can I do this?