I'm trying to access some webpage multiple times but each time I'll use different parameters.
Here's an example of what I'm trying:
var codes = [1, 2, 3, 4, 5]
for(i = 0; i <= codes.lenght; i++){
window.open('http://localhost/applicationame/execute/cod/'+codes[i],'_self');
}
(I removed the url real names because of work related privacy)
But when I execute it in the browser console the browser only access the page containing the last element of my array. I tired using setTimeout to make the browser wait and then visit the next page but it just returns me the same behavior. I tried googling some solutions but found no good answers that apply to my case. I'm open to use JQuery too if needed or other tools that can help me with it.