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: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Mahendran Venkatesan Sent: Tuesday, 5 April 2011 8:58 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] Need to access parent content from iframe i tried with window.domain, it's not working. 2011/4/5 Elankeeran / இளங்கீரன் V <ekee...@gmail.com> 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 <venkatesan.mahend...@gmail.com> wrote: yes! 2011/4/5 Elankeeran / இளங்கீரன் V <ekee...@gmail.com> its your iframe url and parent window in same window? On Tue, Apr 5, 2011 at 3:34 PM, Mahendran Venkatesan <venkatesan.mahend...@gmail.com> 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: memberh...@webstandardsgroup.org ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *******************************************************************