Switch to full style
HTML,DHTML,Javascript,XML,CSS
Post a reply

Code to open multiple links.

Thu May 03, 2012 12:21 pm

Hello ,
I want to create a code that opens a number of links and after a time it closes them . I think i made that :
javascript : var url101='urlname';setTimeout(function() {var w101 = (window.open(url101)},10000);setTimeout (function() {w101.close()}, 75000);
var url102='urlname';setTimeout(function() {var w102 = (window.open(url101)},10000);setTimeout (function() {w102.close()}, 75000);
var url103='urlname';setTimeout(function() {var w103 = (window.open(url101)},10000);setTimeout (function() {w103.close()}, 75000);
var url104='urlname';setTimeout(function() {var w104 = (window.open(url101)},10000);setTimeout (function() {w104.close()}, 75000);
var url105='urlname';setTimeout(function() {var w105 = (window.open(url101)},10000);setTimeout (function() {w105.close()}, 75000);
But what do i have to do if i want , for example , to open first 3 , after some time auto close them and after the first 3 close the other 2 will open and after some time they also close ? Because my first code opens all 5 five at once ...
Thanks



Post a reply
  Related Posts  to : Code to open multiple links.
 java code to open word doc attached in ms access.db     -  
 Multiple Inheritance     -  
 Multiple Exception Catching     -  
 Using Multiple Values for a Cookie in php     -  
 Jtable with multiple headings     -  
 send mail to Multiple recipients     -  
 calculate data from multiple selection     -  
 Open in a new window help     -  
 Which open-source CMS is the best?     -  
 Carrier Sense Multiple Access CSMA     -