how to refer to an iframe's parent doc?

38 views
Skip to first unread message

Govinda

unread,
Apr 9, 2010, 6:13:29 PM4/9/10
to Web Authoring
Hi all

How can I make a form submission inside an iframe (iframe submitting
to itself) cause it's wrapper a <div>, in the iframe's *parent doc*,
to get its CSS display: set to 'none'? Is there a way to refer to an
iframe's parent with JS or HTML?

Or how would you approach this? I want to use an iframe rather than a
JS popup window if possible.. but will relent if utterly necessary.

thanks
-Govinda

Govinda

unread,
Apr 10, 2010, 2:40:10 AM4/10/10
to Web Authoring
now I know I can call a JS function in the parent doc with:
parent.functionName
(in case anyone was curios how it got solved.)
wishing you well
:-)
-G
Reply all
Reply to author
Forward
0 new messages