javascript call to open multiple windows, but only one opens

前端 未结 2 845
盖世英雄少女心
盖世英雄少女心 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.

提交回复
热议问题