showWebPopup or newWebView / Popup callback to parent

hi, im working on a webview that calls a popup

the popup appears full in the webview.

when it closes it should give a callback to the parent page.

but seems the popup is completly replacing the parent page and no callback possible.

or is there a way.

the parent calls the popup, when the popup is closing it should give a callback to the parent

that it redirect itself to another url.

thanks

chris