I am trying to open multiple url in javascript for certain seconds and auto close them. I have no background knowledge in programming, just a little php. I am doing it to demonstrate a project.
I have an array with some url’s.
var allURL = ["http://google.com", "http://yahoo.com", "http://msn.com"];
Now I want to open all url in new window/tab one by one for 10 seconds and auto close. So http://google.com opens for 10 seconds and auto close, then http://yahoo.com opens. Similar with all url’s in array.
can you kindly guide me how can this be achieved using setInterval or any other ways.
1 Answer