You could implement this using cross-document messaging (http://dev.w3.org/html5/postmsg/). I'm not sure how many browsers support it though.
From: [email protected] [mailto:[email protected]] On Behalf Of Mahendran Venkatesan Sent: Tuesday, 5 April 2011 8:58 PM To: [email protected] Subject: Re: [WSG] Need to access parent content from iframe i tried with window.domain, it's not working. 2011/4/5 Elankeeran / இளங்கீரன் V <[email protected]> if both the page are in different domain and if your owning both page then you can add below line in the top of your both page window.domain="yourdomainname"; On Tue, Apr 5, 2011 at 4:09 PM, Mahendran Venkatesan <[email protected]> wrote: yes! 2011/4/5 Elankeeran / இளங்கீரன் V <[email protected]> its your iframe url and parent window in same window? On Tue, Apr 5, 2011 at 3:34 PM, Mahendran Venkatesan <[email protected]> wrote: In my website, I have a requirement where iframe js should access the form fields of parent window. I tried with "window.parent.document.forms", but it is not working. Is there any possibility to access the parent window content from iframe js? p.s. The iframe and parent window are different domain. The js file resides in iframe. Thanks! Venkatesan M ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] *******************************************************************
