Hi
I'm using a WebView to open a webpage which contains various sections that open in a second window. I've got the popup opening fine using the following;
BTW - The above depends on the WebViewSettings library.
However, the issue I have is that on the popup page there is a button that which you can use to close the window and allowing you to return control back to the parent window. Now I'm not sure if what I've done is correct because when I press the button nothing happens. I suppose what it's trying to do is close the WebView which presumably cannot happen.
So my question is, how should I be handling opening a child window using WebViews?
Thanks
I'm using a WebView to open a webpage which contains various sections that open in a second window. I've got the popup opening fine using the following;
B4X:
WebViewSt.SetJavaScriptCanOpenWindowsAutomatically(WebView0,True)
WebViewSt.getJavaScriptCanOpenWindowsAutomatically(WebView0)
BTW - The above depends on the WebViewSettings library.
However, the issue I have is that on the popup page there is a button that which you can use to close the window and allowing you to return control back to the parent window. Now I'm not sure if what I've done is correct because when I press the button nothing happens. I suppose what it's trying to do is close the WebView which presumably cannot happen.
So my question is, how should I be handling opening a child window using WebViews?
Thanks