title: Captive Wifi Popup: Click a link to open Safari
body: <p>We are having an issue on our network with iOS devices (ipads, iphones etc): After connecting to the SSID, the iphone / ipad immediately opens the Captive Network Assistant (CNA) - it is like a scaled-down browser without navigation buttons etc - that displays our welcome page (ready for the user to authenticate his MAC in the network to give him internet).  This CNA is a functin of iOS, and happens automatically.</p>
  
  <p>I was looking around on this forum how to make the user open his Safari browser by clicking a link (while in the CNA), thus sending him away from the CNA and into Safari (which is where I would prefer him to be).</p>
  
  <p>I searched phrases such as: "How to set a link to open in safari", but I get results about people using phonegap to do such a thing...<br>
  One user talked about using
  window.open(myURL, '_system')
  but I don't know if that is solving my issue.</p>
  
  <p>Basically my plan is to:
  - Have my Welcome Page (the page displayed after the user connected to my SSID) detect what type of browser the user's device has.  My Welcome Page is hosted at a site which is in the Walled Garden of my controller, so every device can see that Welcome page (whether they have full internet access or not).
  - If the user has an iOS device, the CNA browser opens automatically.  My controller detects the device has a CNA browser and loads a simple page with the message (like): "click here to start to navigate"
  - During the next few seconds (while the user is digesting the message), my controller gives the user's MAC full internet access
  - When the user clicks that link in the CNA browser, the CNA closes and then opens Safari, and also forces Safari to open the destination Welcome Page (where I want my user to be, depending on the antenna to which he connected).</p>
  
  <p>I really hope that all makes sense...</p>
  
  <p>I found this link about the CNA browser in this forum:
  <a href="https://stackoverflow.com/questions/19682624/bypasses-apple-captive-network-assistant-login-in-ios-7">Bypasses Apple Captive Network Assistant Login in iOS 7</a></p>
  
  <p>But it talks having the user open Safari right from the start (disabling the CNA function), "hoping" that the user opens Safari (rather then going directly to one of his apps).  I prefer that the user has to "click to continue", which makes Safari open and he sees my Welcome Page.</p>