How do you create and an array of links and then open them all in the background in HTML?-ThrowExceptions

Exception or error:

I’m trying to create an array of links and then open them in the background. The size of the array will vary. Here is the code I have right now. I am getting a “missing )” error.

I’m guessing there’s a more efficient way to create/open the links in this array but I don’t know it.

Thanks in advance!

for(var n = 0; n < newSearchArr.length; n ++){
  document.createElement('<a href = "'newSearchArr[n]'" target = "'_blank'" id = '""newSearchArr[n]"" + "link"'></a>');''newSearchArr[n]'+"link"'));
How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *