javascript - Chrome opens list of links in new windows instead of tabs? -


I am creating a custom start page for myself and one issue I'm running is a link above I want to keep all the sections which, when clicked, will open all the pages in a new tab. I have to parse through the list, but only the first link opens in a new tab, all others open in new windows.

Here's a link to the page on which I'm working:

An example here is an HTML The snippet is:

  & lt; Section & gt; & Lt; H2 & gt; Wallpaper sites (& lt; a href = "#" & gt; open all & lt; / a & gt;) & lt; / H2 & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "http://wall.alphacoders.com/" & gt; Alpha coders & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "http://interfacelift.com/" & gt; Interface LIFT & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "http://thepaperwall.com/" & gt; Paper Wall & lt; / A & gt; & Lt; / Li & gt; & Lt; Ul & gt; & Lt; / Section & gt;  

Here's JavaScript (mostly jQuery):

  $ ('h2 a') .on ('click', Event (event) {event.preventDefault (); event.stopPropagation (); $ (this) .Parent (). Next (). ('A') .each (function () {// console.log Search (this .hff); window.open (this.href); window.focus ();});});  

I'm not sure that this kind of behavior is not prohibited by your user Does Chrome settings


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -