PDA

Click to See Complete Forum and Search --> : hmm can i nest a window object inside a for loop? specifically window.open


Aerials
Apr 15th, 2002, 06:43 PM
Is it possible? cuz it wont work with me

sail3005
Apr 15th, 2002, 06:49 PM
yeah....probably an error with your code

rjlohan
Apr 15th, 2002, 06:50 PM
Oh great... you're not making one of those endless streams of porn-ad popups are you?
:p

sail3005
Apr 15th, 2002, 06:58 PM
LOL, :p

if you post the code i'll have a look...

Aerials
Apr 15th, 2002, 06:59 PM
Im pretty sure the code's right... agh!

by the way, no its not an endless stream of porn popups :p

sail3005
Apr 15th, 2002, 07:00 PM
k, well i can't help anymore without code :(

Aerials
Apr 15th, 2002, 07:05 PM
great just as soon as i finish the last reply u post urs lol
i tried both the for and while loops but here goes the while:

while(a=a)
{
window.open("www.asdas.com","height=300, width=300")
}

also tried a=1

it says its a non valid arguement or somethin (my browser is in spanish)

sail3005
Apr 15th, 2002, 07:10 PM
window.open("url","title","
scrollbars,toolbar=no,location=no,directories=no,status=no,menubar=yes,resizable=yes,width=310,heigh t=200")

that is the proper window code, check your "" marks

rjlohan
Apr 15th, 2002, 07:14 PM
Hmm... I would assume that your code will think "height=300, width=300" will be the Title of the new window. You haven't passed a blank argument for the Title parameter. You will need to add a , "" between the two parameters you've already got.
JavaScript is very sensitive, so I don't think you can leave out arguments like that.
:)

Aerials
Apr 15th, 2002, 07:15 PM
THX :D
nice to have ppl that know javascript for a change ;)

sail3005
Apr 15th, 2002, 07:21 PM
no problem.. if you have any more questions just ask. i see you are new. welcome to VBF :)

Aerials
Apr 15th, 2002, 07:36 PM
thx :) very nice of u :)

Aerials
Apr 15th, 2002, 07:37 PM
lohan i didn't know i needed a title :/
but thx for clearin that up

rjlohan
Apr 15th, 2002, 07:43 PM
Does it work now?

Aerials
Apr 15th, 2002, 07:52 PM
YUP!! it works :D and my comp froze so thats y i took so long to reply thx guys :D
well i g2g eat dinner so ill post later mayb