Javascript 重定向到Playstore后关闭浏览器选项卡
我正在通过一些推荐链接重定向到Android手机上的google play store(应用程序),但重定向后我无法关闭浏览器选项卡。我尝试了Javascript 重定向到Playstore后关闭浏览器选项卡,javascript,url-redirection,google-play,Javascript,Url Redirection,Google Play,我正在通过一些推荐链接重定向到Android手机上的google play store(应用程序),但重定向后我无法关闭浏览器选项卡。我尝试了window.close();但它不起作用 就像这里一样,如果你在移动chrome浏览器中点击这个链接,它会提示你进入Android Play store。flipkart.com/mobile-apps <body> <script> window.location.href = "https://play
window.close()
;但它不起作用
就像这里一样,如果你在移动chrome浏览器中点击这个链接,它会提示你进入Android Play store。flipkart.com/mobile-apps
<body>
<script>
window.location.href = "https://play.google.com/store/apps/details?id=com.bt.bms";
</script>
<noscript>
<meta http-equiv="refresh" content="0;URL= " http:>
</noscript>
</body>
window.location.href=”https://play.google.com/store/apps/details?id=com.bt.bms";
大多数浏览器都不允许关闭选项卡。有些会显示一个警报,询问用户是否要关闭选项卡
你能不能不使用当前的标签直接链接到Google Play商店?而不是打开一个新的
<a href="https://play.google.com/store/apps/details?id=com.bt.bms" target="_self">Download My App</a>
这将在一个新选项卡中打开Playstore。我将在Android手机中重定向到google Playstore(应用程序)。比如,如果你在移动chrome浏览器中点击这个链接,它将为Android Play store提供服务。您可能希望将这些信息添加到您的问题中,以便每个人都能更好地帮助您。
<a href="https://play.google.com/store/apps/details?id=com.bt.bms" target="_blank">Download My App</a>