开发者

link to itunes (itms://...) without opening a new window

开发者 https://www.devze.com 2022-12-09 03:22 出处:网络
how do i call a link to itunes (itms://...) without opening a new window. with window.open there comes a new window (as the function says :))

how do i call a link to itunes (itms://...) without opening a new window. with window.open there comes a new window (as the function says :)) $.get('itms://...'); d开发者_开发问答oesn't work.

Any other possibilitys :)?

would be thankful for help!


Didn't try, but two ideas come to mind:

  1. iframe
  2. set location to the URL, it shouldn't replace your page anyway.


To clarify, you are referring to not opening a new browser window, as opposed to trying to open iTunes within the browser.

In that case, Nickolay's 2nd option is your best bet - this JavaScript will work (using actual example URL):

var url = 'itms://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=307538288';
location.href = url;
0

精彩评论

暂无评论...
验证码 换一张
取 消