PDA

Click to See Complete Forum and Search --> : HELP !! Netscape Nightmare!!


benski
Jan 8th, 2001, 08:00 AM
I need to refer to a layer in another frame in my frameset in order to write to that layer.

For instance- if the layer was in my current document, I would simply say:

document.layers["myLayer"].document.open()
document.layers["myLayer"].document.write("some text")
document.layers["myLayer"].document.close()

I can refer to the frame that I want with:

top.frames.FrameName

But I cannot seem to access the properties of the frame to put these two segments together.

ANY help very gratefully received!

sebs
Jan 10th, 2001, 12:33 PM
did you tried :

parents.frames.frameName.document.layers["myLayer"].document.open()

benski
Jan 17th, 2001, 03:21 AM
In the end, I've done it like this:

window.top.frames['framename'].document.layers[0].document.open()