As above, enter the Preferences screen. Click Security, then check or uncheck "Block pop-up windows". Similarly, you can enable or disable pop-ups for Safari on the iPhone using the app's Settings menu.