I have an array of Strings which are the directoriess of my pdfs such as:
var fluids_array = ["Fluid/no1.pdf", "Fluid/no2.pdf"];
for(var i in fluids_array) {
var fluidplan = fluids_array[i];
var myWindow = window.open(fluidplan,"_blank");
if (myWindow) {
myWindow.focus();
}
}
Why does it only opens the last (second) pdf and not both? How can I fix it?