[thelist] [javascript] referencing an iframe from a child window

Anthony Baratta Anthony at Baratta.com
Mon Sep 29 19:09:31 CDT 2003


At 03:29 PM 9/29/2003, Paul Bennett wrote:
>'Volters, I want to reference an iframe in a parent window from a function 
>in a child window.
>
>I can reference the DOM of the parent window fine using things like 
>window.parent.document .. but from what I can see an Iframe is treated as 
>a seperate document to the document it is contained in.
>I can reference it from the parent document (by using it's id) but don't 
>seem to be able to do the same from the child window.
>Can anyone give me any pointers on how to reference it?

???

iFrameTarget = window.parent.document.getElementByID("IFramID");


-- 
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."



More information about the thelist mailing list