-2
rated 0 times
[
5]
[
7]
/ answers: 1 / hits: 80774
/ 10 Years ago, mon, june 23, 2014, 12:00:00
I'm trying to open multiple links at once in Google Chrome in new tabs but it fails.
Problems:
- Blocked by popup
- Open in new windows instead of tab after the user allowed the popup
With this, I can open multiple links at once in Firefox:
<!DOCTYPE html>
<html ng-app=plunker>
<head>
<meta charset=utf-8>
<title>AngularJS Plunker</title>
<script>document.write('<base href=' + document.location + ' >');</script>
<link rel=stylesheet href=style.css>
<script [email protected] src=https://ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular.min.js data-semver=1.2.17></script>
<script src=app.js></script>
</head>
<body ng-controller=MainCtrl>
<button ng-click=openLinks()>Open</button>
</body>
</html>
Also, I came across someone who found a workaround.
I tried using setInterval
to try to open the links individually but it didn't work.
More From » angularjs