|
-
Jan 8th, 2001, 09:00 AM
#1
Thread Starter
Lively Member
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:
Code:
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:
Code:
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!
-
Jan 10th, 2001, 01:33 PM
#2
Frenzied Member
did you tried :
parents.frames.frameName.document.layers["myLayer"].document.open()
-
Jan 17th, 2001, 04:21 AM
#3
Thread Starter
Lively Member
In the end, I've done it like this:
window.top.frames['framename'].document.layers[0].document.open()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|