Total members 11894 |It is currently Sat Nov 23, 2024 11:14 pm 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     -  
 Jtable with multiple headings     -  
 Multiple Exception Catching     -  
 Using Multiple Values for a Cookie in php     -  
 send mail to Multiple recipients     -  
 calculate data from multiple selection     -  
 Open in a new window help     -  
 Which open-source CMS is the best?     -  
 avoid multiple submit clicks using javascript     -  









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