Javascript 链接上意外的点击行为+;谷歌iOS应用中的弹出式点击

Javascript 链接上意外的点击行为+;谷歌iOS应用中的弹出式点击,javascript,jquery,ios,facebook,Javascript,Jquery,Ios,Facebook,我有以下问题。我有以下代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Click Me test site</title> </head> <body> <a href="http://stackoverflow.com" co-target="http://appl

我有以下问题。我有以下代码

    <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Click Me test site</title>
</head>
<body>
    <a href="http://stackoverflow.com" co-target="http://apple.com">Click Me</a>

    <script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
    <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <script>
        $(document).ready(function() {
            var handler = function codeclick(event) {
                var link_new = $('a').attr('co-target');

                if (link_new) {
                    window.open(link_new, '_blank');
                }
            }
            $('a').bind('click.codeclick', handler);
        });
    </script>
</body>
</html>

点击我的测试站点
$(文档).ready(函数(){
var handler=函数codeclick(事件){
var link_new=$('a').attr('co-target');
如果(新链接){
打开(链接“新建”,“空白”);
}
}
$('a').bind('click.codeclick',handler);
});
你可以在行动中看到它

桌面上的预期行为是,在新选项卡/窗口中打开“共同目标”属性中的页面,在当前选项卡中打开“href”属性中的页面

在内部移动facebook浏览器上,它应该只打开共同目标属性页面(预期)。但在谷歌移动iOS应用程序上,它会在href属性中打开页面(意外)


有没有人以前遇到过类似的问题,也许有一些线索,我应该怎么做才能使它正确?无需打开co target中的页面。我只想在facebook和google应用程序上打开其中一个,每个应用程序都没有不同。

什么是谷歌移动iOS应用程序?这是指向appstore的链接:基本上是谷歌搜索应用程序。我看不到你在任何地方阻止单击默认操作–因此打开href属性中的链接似乎很自然。阻止单击并写入窗口。location.href没有任何效果。即使我更改window.open和window.location.href的位置,也没关系。