What you need to learn to do is navigate the document hierarchy, which is
pretty simple once you get the hang of it. It should also be noted that
unless you're willing to work with one browser and one browser only, you're
not going to enjoy all the coding that makes this cross-browser compatible.
For IE only, if I have an HTML file with an iFrame and I want to refer to
that iFrame, I do this:
document.myFrame.location = "http://www.yahoo.com"
If I want to refer back to the document from my iframe, I do this in the
iframe code:
parent.somesetting.somevalue = 'some new value'
To refer to a second iframe from the first iframe:
parent.secondIframe.location = "http://www.google.com"
To refer to the containing frame of the parent document of either iframe:
parent.parent.someSetting.value = 'some new value'
See how that works for you...
- Wm
--
William Morris
Product Development, Seritas LLC
Kansas City, Missouri
"James Wallace" <jw******@btutilities.com> wrote in message
news:a5**************************@posting.google.c om...
I need to know how to change the src property of an iframe from script
that is executed in another iframe with both of these iframes being
contained on a document which is then contained by another frame. I
have done a bunch of searching on these groups all to no avail.
I am new to javascript and learning so if someone can help me with
this I would appreciate it.