Total members 11890 |It is currently Fri Apr 19, 2024 10:24 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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




Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com