Hi,
I try access an iframe(name=iFrameName)inside a DIV in frame_A from frame_B.
In frame_B, I have <body onLoad="parent.frame_A.document.iFrameName.location.href='newpage.htm';"> , but it doesn't work. Please help, thanks in advance.
Adam,
Thx a lot for the help.Now it works for all the browsers except for KDE's Konquoror, seems it ignores '.iFrameName.document', and for window.open() method, Konqueror just opens a new pop up window instead of sending to the target iframe. I have no clue.
Hmm, I've never used Konqueror before. Maybe it considers the location object to be an invalid child of the document object. You could give this a try:
Finally got it to work! For W3C-DOM, the iframe is never entered into the frames array, so the "parent.frame_A.iFrameName.location.href" syntax will not work.
By switching to "parent.frame_A.document.getElementById('iFrameName').src", it works fine.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.