When attempting to open the 5 URLs provided by the user in the textarea
, I encountered an issue where the array was not processing each URL individually, but rather all together:
function loadUrls()
{
var myurl=new Array();
for(var i=0;i<5;i++)
{
myurl[i] = document.getElementById("urls").value.split('\n');
window.open(myurl[i]);
}
}