I am trying to write a simple ios web browser app in xcode that can handle when accessing a website can open a popup window?

I can access a url in the xcode app, but can't get it handle a pop up window.