iOS UIWebView Handle window.open/window.close PopUp Page

  I had a unique problem today – if a page opens a new ‘window’ in a UIWebView and then calls window.close to close it, how is that handled in iOS? UPDATE: Swift version added at the bottom. On top of that, the pop-up window was to allow the user to select a value for Read more about iOS UIWebView Handle window.open/window.close PopUp Page[…]