Click here to Skip to main content
16,018,938 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi i want to create a web application when i open the first page

it will open the website in should open a website in a pop up multiple times


for example it will open google.com 10 times and auto close the pop up when all the pop up are close redirect to other page say page 2 and again repeat the same task for other site like yahoo.com

example i have created a function to open multiple popup

function call()
	{
	  var a=0;
	 
	  for ( a=0 ;a<200;a++)
	  {
	   
	    window.open('http://www.google.com','a'+a,'height=300,width=600');
	  }
	}

now i want to auto close all the pop up and redirect to other page

on the next page same process will run for other site and keeps on going for around 100 page
Posted
Updated 14-Apr-11 21:20pm
v2
Comments
OriginalGriff 15-Apr-11 3:28am    
And the moment I navigated there, I would make it my mission in life to track you down and administer a lesson in net etiquette, probably with a very large hammer.
Don't do it.
Sandeep Mewara 15-Apr-11 5:54am    
Totally agree! :)
Ashutosh Shukl 15-Apr-11 6:21am    
what you want to say
OriginalGriff 15-Apr-11 9:01am    
If that is a question - most people use punctuation to indicate this - then the answer is: Don't be so stupid. All you will do is annoy the heck out of anyone who accidentally comes to your page - and it will be accidental, because no-one will come back again.
Sandeep Mewara 15-Apr-11 5:54am    
What you are asking can be done but really-really irritating and one should avoid it.

1 solution

I hate popups. And you are trying to show many popups at a time!!
Do you have any other reason than adverts?
 
Share this answer
 
Comments
Sandeep Mewara 15-Apr-11 5:53am    
Windows.Open are not popups.
Prerak Patel 15-Apr-11 5:56am    
But he tries to open multiple windows from one single page. He can use window.close, but I am sure he wouldn't know how. I doubt his intentions.
Sandeep Mewara 15-Apr-11 5:58am    
I doubt his intentions.
Exactly, hence I have not replied him + posted a comment.

:)
Ashutosh Shukl 15-Apr-11 6:23am    
what is pop up definition for you
Prerak Patel 15-Apr-11 6:28am    
Does it matter?
Anything annoying of no use that pops up unnecessarily.

And, if you want to get it solved, already there is a hint.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900