| || |
getting rid of a new window browser
When used on the web, Silk has conditions for detecting a browser: it has to have the browser URL visible as well as the icon tool bar.
My application launches a new window(browser) from the focused browser,however, the launched browser(focused) does not have neither the URL nor the toolbar.
How do I close the window/get rid of it when Silk does not recognize it?
Re: getting rid of a new window browser
Even though the window does not have a toolbar nor a location bar, it's still a Browser window (child).
To get rid of the original or the child window you need to declare them correctly, making sure they are unique in the tag field.
To dismiss one of them, Set it Active then close it. Then set the child window active.
BrowserWindow.SetActive () // use the declared identifier
ChildWin.SetActive () // use the declared identifier