nativeWebView event listener

Also is it possible to have an event listener for a close event on the webview. So if there is a popup called on the webview and the person presses a button or submits info and that pop up is supposed to then close that I can pick it up on the event listener and trigger the webview to reload the previous page.

For example the person visits a page, one of the options requires them to sign in via facebook which brings up a facebook login - once they have logged in the popup would usually close and a redirect happen but the webView isnt detecting this by default. So I want to have an event listener pick up the call to close the popup and then I will redirect the webview to where it needs to go or send them back to a specific url from their history where they were before the popup triggered.

Any help would be great!

From what I’ve seen in using a Webview, you only get the one listener function which is called for any submit or link action.  Is there an actual “close” action available in HTML5/JS?

Have you tried just printing out the event info inside the listener and see what it sends you?

From what I’ve seen in using a Webview, you only get the one listener function which is called for any submit or link action.  Is there an actual “close” action available in HTML5/JS?

Have you tried just printing out the event info inside the listener and see what it sends you?