(php - javascript) popup when opening website on mobile
<p>How can I make popup ads work only one time for mobile ios browser. </p>

<p>I am using (popup show every time : how I can make it show only first time)</p>

<pre><code>&lt;script type="text/javascript"&gt;
if( /iPad|iPhone/i.test(navigator.userAgent) ) {
var url=confirm("Would you like to download our mobile application?");
if (url==true)
{
var url = window.location.href = 'http://itunes.apple.com/us/app/AppId';
url.show(); 
   }
else
{
    }
}
&lt;/script&gt;
</code></pre>