i am trying to target a select box that is on another frame.... I cannot figure out what frame it is on though... is there a logic to the # in this statement?
parent.frames[#].document.all.
thanks
michael
Printable View
i am trying to target a select box that is on another frame.... I cannot figure out what frame it is on though... is there a logic to the # in this statement?
parent.frames[#].document.all.
thanks
michael
Top to bottom, left to right.
[0][1]
[2][3]
or
[ 0 ]
[1][2]
like that. And you can always reference the frame by name, I think. ie...parent.frames.fraMain.document.all...
:)
I thought it started with 0
oh, and don't forget that the frames array starts at 0.
:rolleyes:
yup, time to edit...:DQuote:
Originally posted by landon11
I thought it started with 0
thanks :)
Michael
ok... now I have a wierd one... I have a page with two framesets:
----------------------
l..........................l
l.......................... l
----------------------
l..... l............ l........ l
l..... l............ l........ l
l..... l............ l........ l
----------------------
l.......................... l
l.......................... l
----------------------
the first frameset has the 3 rows
the middle row is a framset with 3 columns
in the top row, [0] i assume, I have the select mentioned earlier
and in the middle column in the middle row I have the inputs I am targeting.
my guess is that they are #'ed like this
0
1 345
2
how will I get this one?
Michael.......................... ..... ............ ........
If you know the names of the frames then it is possible to access the objects like this :
top.framename.formname.objectname.....