无法从javascript打开android playstore中的应用程序链接

无法从javascript打开android playstore中的应用程序链接,javascript,html,Javascript,Html,我希望当我加载html页面时,他将重定向到playstore应用程序 问题是我在chrome而不是android应用程序中获得playstore 我试过了,但没有成功 一, 三, 四, 请查看:这是您应该用于在PlayStore应用程序上重定向的链接。您是否将浏览器设置为默认应用程序以打开市场链接?检查您的默认应用程序设置链接中的target有错误:“targetrt”用户必须单击链接,Chrome忽略重定向: <a id="androidLink" href="https://play.

我希望当我加载html页面时,他将重定向到playstore应用程序

问题是我在chrome而不是android应用程序中获得playstore

我试过了,但没有成功

一,

三,

四,


请查看:这是您应该用于在PlayStore应用程序上重定向的链接。

您是否将浏览器设置为默认应用程序以打开市场链接?检查您的默认应用程序设置链接中的target有错误:“targetrt”用户必须单击链接,Chrome忽略重定向:
<a id="androidLink" href="https://play.google.com/store/apps/details?id=mylink" target="_top"></a>

document.getElementById("androidLink").click();
window.location.href = "https://play.google.com/store/apps/details?id=mylink";
header('location: mylink ')
window.location.href = "market://details?id=mylink";