Window.open不工作了谷歌浏览器的多个链接 [英] Window.open isn't working for multiple links in Google Chrome

查看:348
本文介绍了Window.open不工作了谷歌浏览器的多个链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在FF测试了这个,做工精细,但无法在Chrome。对于单链路,我发现这是使用重定向一个黑客,但我还是想办法在Chrome中打开新标签页的多个链接。

I tested this in FF, work fine but not in Chrome. For single link, I found a hack which is using redirect, but I'm still looking for ways to open multiple links in new tabs in chrome.

http://plnkr.co/edit/zVaEFssH4o4qDycSUNGD?p=$p$ PVIEW

      $scope.openLinks = function(){
        var urls = '';
        angular.forEach($scope.links, function(item){
            $window.open("redirect.html?" + item.link);

    });

  };

值得mentiion, http://www.rapidlinkr.com/ 不镀铬工作,但在FF工作。

worth to mentiion, http://www.rapidlinkr.com/ doesn't work in chrome but working in FF.

推荐答案

window.open 似乎谷歌浏览器工作正常,除了这一事实,Chrome的流行-up拦截从开口拦截新的窗口。没有办法,除非用户允许弹出窗口阻止程序,让您的网站上的弹出式窗口为据我所知绕过这个。

Your window.open seems to be working fine in Google Chrome, except for that fact that Chrome's pop-up blocker is blocking the new windows from opening up. There is no way to bypass this as far as I know unless the user allows the pop-up blocker to allow pop-ups on your website.

这篇关于Window.open不工作了谷歌浏览器的多个链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆