Not really sure how to correctly describe this so hopefully some of you know what I mean.
Our client is getting a mobile app for thier site, hopefully soon, and I ha
Using some infor from a java push trigger as well as a few other Stacks I put this together.
<script type="text/javascript">
if( /Android|iPhone|BlackBerry/i.test(navigator.userAgent) ) {
var url=confirm("Would you like to download our mobile application?");
if (url==true)
{
var url = window.location.href = 'http://www.google.com';
url.show();
}
else
{
}
}
</script>
Will test for the 3 devices mentioned, if so will create a confirmation box for which confirmation will direct the user to another url.