Noob question about JS

Status
Not open for further replies.

vlaze

New member
Oct 12, 2007
3
0
0
I know this is a very easy coding question but I am unable to put the pieces together. I need JS code that will popunder a window a few times in a cascade. Im able to open one when the initial page loads but I would like to have at least 5 with different urls in each one that correspond to different pages on my site. Any suggestion?
 


You cant do this the galaxy parliament forbids that. But you can ask princess Leia. On top of that, i am drunk as fukc right now so you can asweell bait my shiny metul assss. HHA! If you need a scraper coded, letme know! Marry christamyas everyone!!

Edit: sory i am really too drunk. mods please take it easy on me haha.
 
Sorry i was soooo drunk yesterday :D

To your question: i guess now you have something like:

Code:
var wnd = window.open(....);

why not change it to:

Code:
var wnd = window.open(....);
var wnd2 = window.open(....);
var wnd3 = window.open(....);
var wnd4 = window.open(....);
var wnd5 = window.open(....);
 
Houdas is always good with the javascript questions.

He's absolutely right. Look at the code that does the PopUnder and just repeat. If it's part of some script then look at the final page you have and look where you see lines like Houdas suggested (the ....".open"... part)

Also remember there'll be another trick with the ".focus()" which will change what was a pop up into a pop under (all the do is do a pop up and then ask the browser to bring the original window back to the front)

Good luck.
 
Status
Not open for further replies.