I want to direct users to the app store when they hit the "download" button on my website.
It works fine when they do it in Safari, but some apps like Reddit embed the browser inside their own app. Every once in a while I see a problem where itunes.com is rendered rather than opening up the app store. Is there a better way of opening up the app store?
var url = "https://itunes.apple.com/us/app/snapchat/id447188370?mt=8"
window.open(url,'_blank');