9422

Window.open isn't working for multiple links in Google Chrome

Question:

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.

<a href="http://plnkr.co/edit/zVaEFssH4o4qDycSUNGD?p=preview" rel="nofollow">http://plnkr.co/edit/zVaEFssH4o4qDycSUNGD?p=preview</a>

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

worth to mentiion, <a href="http://www.rapidlinkr.com/" rel="nofollow">http://www.rapidlinkr.com/</a> doesn't work in chrome but working in FF.

Answer1:

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.

Recommend

  • ng-model is getting wrong value from dropdown
  • Angular Js : onchange in directive at class attribute is not working
  • Dojox/mvc/at model scope
  • Rails routing for has_and_belongs_to_many relationship
  • angularjs - ng-show doesn't update class when $interval triggers
  • IP and domain create different session
  • Process.StartTime Access Denied
  • How to make Javascript generated checkboxes persist?
  • Avoiding dependencies is exploding the number of projects in my VS solution
  • How to exclude files in a custom clean task?
  • UI-GRID column summation on checkbox change
  • Replacing script src using jquery not executed
  • show popover on input validation in angularjs
  • Microsoft Chart Controls for Microsoft .NET Framework 4.0
  • adjust iframe height based on the content
  • Is mp4 stream able with ffserver?
  • keeping track of nested ng-repeat index's
  • css background images not always displayed
  • Using an STL Iterator without initialising it
  • CloseOptionsMenu doesn't work?
  • Python/Javascript: WYSIWYG html editor - Handle large documents fast and/or design theory
  • IE10 strips out hashtag from the URL
  • Using $compile in a directive triggers AngularJS infinite digest error
  • Updating Dojo provide
  • AppleScript : find open tab in safari by name and open it
  • Is playing sound in Javascript performance heavy?
  • Chrome doesn't support silverlight anymore? How to solve this?
  • Is it possible to access block's scope in method?
  • Ajax jQuery multiple calls at the same time - long wait for answer and not able to cancel
  • Fetching methods from BroadcastReceiver to update UI
  • Javascript convert timezone issue
  • Symfony2: How to get request parameter
  • GridView Sorting works once only
  • bootstrap to use multiple ng-app
  • How to get icons for entities from eclipse?
  • WPF Applying a trigger on binding failure
  • Turn off referential integrity in Derby? is it possible?
  • JaxB to read class hierarchy
  • jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize
  • How to load view controller without button in storyboard?