Hi, Can someone give me example like this: I have array of pages: 1. google.com 2.yahoo.com 3.msn.com 4... 5... And when my page loads I want to open with "onload" popups with pages from array, but for each array page one popup. And if its possible deley beatween popups opening for 2-3 seconds. Thanks
Sure it is, when the page is loaded call a function that will set an interval (basically a timer), be sure to clear it once all your popups are launched though.
<script type="text/javascript"> var x=new Array("http://www.google.com","http://www.yahoo.com","http://www.msn.com"); var i=0; function popit(){ if(i==x.length-1){ return; } else { window.open(x[i]);i+=1 } } setInterval(popit,1000); </script> Code (markup): Simple