javascript call to open multiple windows, but only one opens

前端 未结 2 846
盖世英雄少女心
盖世英雄少女心 2021-01-25 12:57

I\'ve a javascript that opens a set of windows.

    $.each($(\'input.ListCheckBox:checked:not(#ToggleCheckBox)\'), function (idx, item) {
        var $Url = $Url         


        
相关标签:
2条回答
  • 2021-01-25 13:07

    The remark of @sebastian is correct. In chrome any interaction can just open one windows. But I'd like to add that 2nd, 3th, ... window.open calls are just waiting to get an approval by the pop-up blocking mechanism. If you approve pop-ups from your site in the browser it works fine. For a production application you'll need to add some kind of warning to the users so that they actually do accept those multiple pop-ups for your application.

    0 讨论(0)
  • 2021-01-25 13:29

    Browsers don't like opening multiple new tabs to prevent ads from doing it. In chrome every user interaction can only open one new tab.

    0 讨论(0)
提交回复
热议问题